Policy initiative

%3CLINGO-SUB%20id%3D%22lingo-sub-2728941%22%20slang%3D%22en-US%22%3EPolicy%20initiative%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2728941%22%20slang%3D%22en-US%22%3E%3CP%3EI%20hope%20someone%20can%20help%20me%20get%20this%20last%20piece%20I%20have%20been%20stuck%20on.%20I%20have%20created%20about%206%20different%20Tags.%20I%26nbsp%3B%20want%20to%20create%20a%20policy%26nbsp%3Binitiative.%20I%20can't%20seem%20to%20get%20this%20created%20via%20PowerShell.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20using%20the%20set-New-AzPolicySetDefinition%20cmdlet.%26nbsp%3B%20The%20error%20I%20am%20getting%26nbsp%3BNew-AzPolicySetDefinition%3A%20The%20provided%20value%20for%20parameter%20'PolicyDefinition'%20is%20not%20a%20valid%20JSON%20array.%3C%2FP%3E%3CP%3EPlease%20see%20attached%20with%20two%20examples%20on%20what%20I%20tried.%3C%2FP%3E%3CP%3EAny%20help%20will%20be%20much%26nbsp%3Bappreciated.%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EPS%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2728941%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Policy%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Regular Visitor

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

0 Replies