Azure蓝图:为VM启用Azure监视器 [英] Azure blueprints: Enable Azure Monitor for VMs

查看:133
本文介绍了Azure蓝图:为VM启用Azure监视器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为治理部署天蓝色蓝图。特别是该计划称为"为VM启用Azure监控"。


它有3个参数:



  • 日志分析工作区
  • 可选:支持的VM映像列表(Windows)
  • 可选:支持的VM映像列表(Linux)

I为必需的日志分析工作区提供了值。 不是2可选的。但除非我提供"可选"的输入。字段,SAVE按钮不会变为蓝色,将其视为必填字段。


请协助。

解决方案

< blockquote>

Hello jluyt, 


AFAIK,"OPTIONAL"在此上下文中,表示创建蓝图时(静态)或将蓝图分配给管理组(动态)时,参数值
不需要
。如果取消选中下面显示的框,则需要输入一个值。一个空集(即[])是可以接受的。


我基于"为VM启用Azure监视器"创建了一个测试蓝图。政策倡议,并能够成功保存蓝图,而无需为3个参数中的任何一个提供值。我可以通过选中"在分配策略时指定此
值"框来执行此操作。这意味着必须在将蓝图分配给管理组(即订阅)时输入必需参数(即LA工作空间)的值,并且可以忽略其他2个可选的
参数值(即列表支持虚拟机入侵(Windows / Linux))





I am deploying azure blueprints for governance. Specifically the initiative called "Enable Azure Monitor for VMs".

It has 3 parameters:

  • Log analytics workspace
  • OPTIONAL: List of VM images supported (Windows)
  • OPTIONAL: List of VM images supported (Linux)

I provided a value for the mandatory log analytic workspace.  Not for the 2 that is optional. But unless I provide input to the 'optional" fields, the SAVE button does not go blue, treating it as a mandatory field.

Please assist.

解决方案

Hello jluyt, 

AFAIK, "OPTIONAL" in this context means the parameter values are not required at the time the blueprint is created (static) or at the time the blueprint is assigned to a management group (dynamic). If you uncheck the boxes shown below then you will need to enter a value. an empty set (i.e. []) is acceptable.

I Created a test Blueprint based on the "Enable Azure Monitor for VMs" Policy Initiative and was able to successfully save the blueprint without providing values for any of the 3 parameters. I was able to do this by checking the box "This value should be specified when the policy is assigned". This means the value for the mandatory parameter (i.e. LA workspace) will need be entered at the time the Blueprint is assigned to the management group (i.e. subscription) and the other 2 optional parameter values can be ignored (i.e. List of VM impages supported (Windows/Linux))



这篇关于Azure蓝图:为VM启用Azure监视器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆