azure-dev icon indicating copy to clipboard operation
azure-dev copied to clipboard

[Issue] If the AZ cli is configured for non-json output, commands may fail

Open Petermarcu opened this issue 3 years ago • 2 comments

We should make sure we are explicitly asking for json output on all our az calls. We should run all our tests with the CLI configured with a different default to find other cases like in issue #441

Petermarcu avatar Aug 11 '22 00:08 Petermarcu

Let's also consider modifying runAzCommand so that it forces json output (instead of requiring us to pass --output json for each command. For the few cases where we run az and need non json output, runAzCommandWithArgs exists and we can ensure via inspection that --output is passed.

ellismg avatar Aug 11 '22 17:08 ellismg

We decide to remove az cli from our project and apply Go SDK. Go SDK returns JSON responses with automatic JSON unmarshalling. @wbreza is working on that and having some great stuff. Once az cli is removed, we would close this issue.

hemarina avatar Oct 12 '22 18:10 hemarina