Sep 07 2021 08:02 AM
I hope someone can help me get this last piece I have been stuck on. I have created about 6 different Tags. I want to create a policy initiative. I can't seem to get this created via PowerShell.
I am using the set-New-AzPolicySetDefinition cmdlet. The error I am getting New-AzPolicySetDefinition: The provided value for parameter 'PolicyDefinition' is not a valid JSON array.
Please see attached with two examples on what I tried.
Any help will be much appreciated.
Regards,
PS
May 12 2022 09:41 AM
It's been over 7 months since you posted this thread and I am sure you figured out how to script a solution by now.
In case others have a similar need to create Policy Initiatives using PowerShell, I hope the attached PowerShell script will be of assistance.
This script supports the following:
Regards,
BrooksV