I am looking for some assistance with deploying a custom Azure Policy.
I have authored a policy and am able to deploy via the portal, but when I attempt to deploy via CLI I am getting the following error:
Failed to parse policy rule: &#39;Could not find member &#39;properties&#39; on object of type &#39;PolicyRuleDefinition&#39;. Path &#39;properties&#39;.&#39;.
The command used is below:
az policy definition create --name &#34;deploy-networkwatcher-extension-windows&#34; --display-name &#34;Deploy Network Watcher Extension Agent&#34; --description &#34;This policy deploys the Azure Network Watcher Extension on Windows VMs.&#34; --rules &#34;policy.json&#34; --mode all
Looking at the examples/samples I did not that authors were using a rules.json that did not include properties. I tried creating one myself but this didnt work either, so I am stuck in understanding my error.
I have attached a copy of my policy and rules json files. I would appreciate if someone could review and advise on my mistake.