使用Powershell部署天蓝色策略

问题描述 投票:0回答:1

我正在通过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

我想可能是标签,谢谢。

json azure arm-template azure-policy
1个回答
2
投票
© www.soinside.com 2019 - 2024. All rights reserved.