我正在通过Powershell部署拒绝策略并收到以下错误
New-AzPolicyDefinition : InvalidPolicyRule : Failed to parse policy rule: 'Could not find member 'properties' on object of type
'PolicyRuleDefinition'. Path 'properties'.'.
我正在使用的代码是:1New-AzPolicyDefinition
名称“ externalDeny”
-Policy 'C:\tmp\denyoms-temp.json'
-参数'C:\ tmp \ denyoms-param.json'`
下面是策略模板。
模板文件-https://pastebin.com/embed_js/HrjUWrvf参数-https://pastebin.com/embed_js/QxEX92jf
我想可能是标签,谢谢。