Powershell - Passing json string into az cli for execution
when you're trying to work with Az cli, you tend to pass in a bunch of json strings. And the thing about powershell, you need to escape double quotes otherwise you will get a whole bunch of errors : -
Expecting property name enclosed in double quotes: line 1 column 1
Expecting property name enclosed in double quotes: line 1 column 3 (char 2)
blah blah blah
To solve this, look at this example :-
This is an example how you can use "az monitor diagnostic-settings" command line.
hope this helps!!!
Comments