【发布时间】:2018-12-20 21:46:51
【问题描述】:
我知道可以选择为属性值提供条件输出,但是否可以有条件属性本身。例如,我有创建Microsoft.Compute/VirtualMachine 的模板,它与Windows 和Linux 的模板相同。但是对于 Windows,我需要指定 Linux 不存在的属性("licenseType": "Windows_Server")。此属性的存在将导致部署失败,并出现错误 The property 'LicenseType' cannot be used together with property 'linuxConfiguration'
我想知道是否可以只为 Windows 图像包含此属性,同时保持模板相同?
【问题讨论】: