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

CLI should provide full deployment data (--output json mode)

Open karolz-ms opened this issue 3 years ago • 4 comments

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

  1. We should gather data for all deployments that are related to CLI invocation (and not just the subscription-level "root" deployment).
  2. Deployment data should include all affected resources and all deployment operations.
  3. For failed deployment operations we should include all available error information.

karolz-ms avatar Apr 21 '22 01:04 karolz-ms

This should be available for both provision and env refresh commands

karolz-ms avatar May 18 '22 18:05 karolz-ms

This is not critical for public preview

karolz-ms avatar May 23 '22 18:05 karolz-ms

@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 avatar Aug 16 '22 04:08 rajeshkamal5050

@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).

karolz-ms avatar Aug 16 '22 15:08 karolz-ms

Closing this since we have added internal support only for VS to consume provision, refresh and show commands with JSON outputs.

rajeshkamal5050 avatar Feb 16 '23 08:02 rajeshkamal5050