CLI should provide full deployment data (--output json mode)
Today the CLI provides only partial deployment data, esp. if the deployment fails. Instead, we should gather all the data, so the user has a complete picture of what went wrong. Specifically
- We should gather data for all deployments that are related to CLI invocation (and not just the subscription-level "root" deployment).
- Deployment data should include all affected resources and all deployment operations.
- For failed deployment operations we should include all available error information.
This should be available for both provision and env refresh commands
This is not critical for public preview
@karolz-ms I believe this is not specific to VS? Do you think this should also be factored as part of the error handling exploration https://github.com/Azure/azure-dev/issues/243 which @Austinauth is looking into?
@rajeshkamal5050 correct, this will benefit all tooling, not just VS. That said, we expect that --output json will be primarily used by tools, and not humans (the default output format should serve humans better).
Closing this since we have added internal support only for VS to consume provision, refresh and show commands with JSON outputs.