我创建了一个拒绝使用更新管理的策略,并且使用了以下代码:
{
"properties": {
"displayName": "Deny-UpdtMngt",
"mode": "All",
"description": "Do not use Automation account for Update management",
"parameters": {},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "microsoft.operationalinsights/workspaces/linkedservices"
},
{
"field": "name",
"contains": "automation"
}
]
},
"then": {
"effect": "deny"
}
}
}
}
现在的问题是该策略按预期工作,但是在策略合规性中它仅显示自动化(microsoft.operationalinsights / workspaces / linkedservices),但是我需要显示使用该工作区的自动化帐户。
我如何使用该政策来实现这一目标?
验证哪个: Microsoft.Automation / automationAccounts
以名称“ automation”链接到: microsoft.operationalinsights / workspaces / linkedservices