Azure / azure-cli

Azure Command-Line Interface
MIT License
4.02k stars 2.99k forks source link

az deployment group what-if - Not returning the error details #24526

Open kalirajann opened 2 years ago

kalirajann commented 2 years ago

$output = az deployment group what-if --resource-group {} --name {} --template-file {} --parameters {} - While running this command, we are able to capture the success and changes. But, unable to capture the error details in an object.

We are facing many challenges to find the cause for the issue in controlled environment

yonzhan commented 2 years ago

@zhoxing-ms for awareness

zhoxing-ms commented 2 years ago

@shenglol Could you please help take a look at the what-if related issue?

ghost commented 2 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @josephkwchan, @jennyhunter-msft.

Issue Details
$output = az deployment group what-if --resource-group {} --name {} --template-file {} --parameters {} - While running this command, we are able to capture the success and changes. But, unable to capture the error details in an object. We are facing many challenges to find the cause for the issue in controlled environment
Author: kalirajann
Assignees: zhoxing-ms
Labels: `Service Attention`, `question`, `ARM`, `customer-reported`, `Auto-Assign`, `Azure CLI Team`
Milestone: Backlog
ghost commented 2 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @satyavel, @apclouds.

Issue Details
$output = az deployment group what-if --resource-group {} --name {} --template-file {} --parameters {} - While running this command, we are able to capture the success and changes. But, unable to capture the error details in an object. We are facing many challenges to find the cause for the issue in controlled environment
Author: kalirajann
Assignees: zhoxing-ms
Labels: `Service Attention`, `question`, `ARM - Templates`, `customer-reported`, `Auto-Assign`, `Azure CLI Team`
Milestone: Backlog
shenglol commented 2 years ago

@kalirajann Can you elaborate on this? On error cases What-If is expected to return error details since that's part of the contract: https://github.com/Azure/azure-rest-api-specs/blob/81cd88a080c4bf4bb251afbe62892a6e220cb2b4/specification/resources/resource-manager/Microsoft.Resources/stable/2021-04-01/resources.json#L6353.

kalirajann commented 2 years ago

$output = az deployment group what-if --resource-group {} --name {} --template-file {} --parameters {} - While running this command, we are able to capture the success and changes. But, unable to capture the error details in an object and always sets null.

$output is powershell object.