"az storage table exists" outputs error when table does not exist
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
I am using version
{
"azure-cli": "2.23.0",
"azure-cli-core": "2.23.0",
"azure-cli-telemetry": "1.0.6",
"extensions": {
"azure-devops": "0.18.0",
"databricks": "0.7.0",
"storage-preview": "0.4.0"
}
}
and when I run the following command in powershell, it outputs an error:
Command:
az storage table exists --name "xxxx" --account-name "xxxxxx"
Output:
Client-Request-ID=f58b5710-b2a0-11eb-8f42-484d7ede63f8 Retry policy did not allow for a retry: Server-Timestamp=Tue, 11 May 2021 21:36:34 GMT, Server-Request-ID=a856224e-e002-0053-64ad-461713000000, HTTP status code=404, Exception=Not Found{"odata.error":{"code":"ResourceNotFound","message":{"lang":"en-US","value":"The specified resource does not exist.\nRequestId:a856224e-e002-0053-64ad-461713000000\nTime:2021-05-11T21:36:35.2460432Z"}}}.
This output is in red and makes it look like some failure occurred, but it didn't. I get the response with the bool set to false and then I can proceed, but it causes confusion when you see red output for something that appears to be a normal case.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: d98c5d1b-370a-af8f-4ef4-396d8854d45d
* Version Independent ID: b824a8dc-0db7-cf03-fed2-70f77bfa7c0f
* Content: [az storage table](https://docs.microsoft.com/en-us/cli/azure/storage/table?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/storage/table.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/storage/table.yml)
* Service: **storage**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**
Contributor guide
Assessment
This issue has not been assessed yet.