Forum Discussion
Giuseppe Tristano
May 30, 2022Copper Contributor
How to apply policy initiative Azure
Hello Mightly Wizards, trying to Assign an Azure Policy Initiative via power shell: step 1: New-AzPolicySetDefinition -Name 'DATABASE_OPEN_SOURCE_ID' -ManagementGroupName MGname -Display...
Kidd_Ip
Mar 20, 2026MVP
To properly define and assign an Azure Policy Initiative (Policy Set) using PowerShell, the JSON file must conform to the official initiative schema, and assignments are performed with the New-AzPolicyAssignment cmdlet. The error you encountered indicates that the JSON structure is invalid, policy definition references should not include a nested properties block. Instead, each reference must directly specify the policyDefinitionId and any required parameters.
https://learn.microsoft.com/en-us/azure/governance/policy/concepts/initiative-definition-structure
https://learn.microsoft.com/en-us/azure/governance/policy/assign-policy-powershell