Skip to content

Show commands should return empty string with exit code 0 for 404 responses#2117

Merged
derekbekoe merged 2 commits intoAzure:masterfrom
derekbekoe:show-exists-404
Feb 17, 2017
Merged

Show commands should return empty string with exit code 0 for 404 responses#2117
derekbekoe merged 2 commits intoAzure:masterfrom
derekbekoe:show-exists-404

Conversation

@derekbekoe
Copy link
Copy Markdown
Member

Closes #1952

@tjprescott
Copy link
Copy Markdown
Member

Can you give some examples of where and how this changes the behavior of these commands?

@derekbekoe
Copy link
Copy Markdown
Member Author

Sure.

VM show RG not found before:

$ az vm show -g notthere -n myvm
Resource group 'notthere' could not be found.

VM show RG not found after:

$ az vm show -g notthere -n myvm
$ 

VM show VM not found before:

$ az vm show -g debekoe-a4 -n myvm
The Resource 'Microsoft.Compute/virtualMachines/myvm' under resource group 'debekoe-a4' was not found.

VM show VM not found after:

$ az vm show -g debekoe-a4 -n myvm
$ 

It's the same for all the other changes in this PR.

@derekbekoe derekbekoe merged commit 2212b66 into Azure:master Feb 17, 2017
@derekbekoe derekbekoe deleted the show-exists-404 branch February 17, 2017 21:11
00Kai0 pushed a commit to 00Kai0/azure-cli that referenced this pull request Apr 7, 2021
Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_ID=482001

Last commit: Azure/azure-cli-extensions@88b40e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants