-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
az storage account create succeed but returns an invalid json #10687
Comments
All To save to a variable (on Linux), To save to a file, To disable the warning, append If there is still problem, please kindly share the full script. Thanks. |
Hi, @tjprescott was in the loop then. |
@jiasli put to next Sprint. |
+1 This is urgent, as Azure is getting now two new local sites, and I can't migrate to the local sites, a s this does not work. |
Is it possible not to capture standard error? This has actually been discussed before in #9891 (comment). |
@Aanerud any update for this issue? |
@Aanerud any update ? |
I used the workaround described in the a similar ticket. I have not updated Azure CLI after, as the workaround works. |
@Aanerud so can we close this issue ? |
According to the doc of |
Describe the bug
A recent change in the storage account create command introduced a fixed warning about the default kind moving to StorageV2 in the near future. It is printed even when the output is requested in json which makes downstream apps or extensions (like image copy) fail in parsing.
Since the message is fixed without any conditions there's no way to avoid the problem.
I don't expect warnings to be printed when output is set to json, or, at the very least, this specific warning to only be printed when the user doesn't specify the kind and relies on the default.
To Reproduce
run this command:
az storage account create --name uksouth0fpcpuevwgzndpb4c --resource-group image-copy-rg --location uksouth --sku Standard_LRS --output json
Expected behavior
A valid json is printed on the screen
Environment summary
Windows-10-10.0.18362-SP0
Python 3.6.6
Shell: cmd.exe
azure-cli 2.0.74
Extensions:
imagecopyextension 0.2.1
Additional Context
At current state, this break the image-copy extension in all scenarios and impacts several customers already.
The text was updated successfully, but these errors were encountered: