-
Notifications
You must be signed in to change notification settings - Fork 3k
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
How to unset static-website
property when invoking az storage blob service-properties update
#28554
Comments
Hi @nulltoken, 2.57.0 is not the latest Azure CLI(2.58.0). If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli. |
Thank you for opening this issue, we will look into it. |
Hi @nulltoken , it seems your settings might be conflicting |
@calvinhzy Hey! Thanks for getting back to me
As you can see, everything is set. And, as the issue title states, I want to turn off that static website capability. What should be the command to run? The doco indicates When running, |
@calvinhzy 👋 Any news? |
@calvinhzy 👋 Have you got the chance the dig deeper into this one? Although this issue been labeled as a question, this may rather look like a bug to me. Thoughts? |
@calvinhzy Hey! I understand this may not be seen as a major blocking issue to most, however a little feedback would be greatly appreciated 😉 |
@yonzhan Would there be any way to get any feedback on this? |
@nulltoken I just ran into this myself - you'll need to use a different argument to unset (set to null) the indexDocument property before disabling the static website:
And then you should see the
|
@nulltoken So sorry about the late response, will look into making |
@calvinhzy Thanks for that. I haven't tested this yet, but maybe the |
Describe the bug
It might be doco issue or a bug at the az cli level.
When trying to invoke
az storage blob service-properties update --account-name my_name --static-website false
, this fails with the following error messageRelated command
az storage blob service-properties update
Errors
ERROR: XML specified is not syntactically valid.
RequestId:8c2c471e-f01e-0019-1836-75bb58000000
Time:2024-03-13T11:07:58.8271647Z
ErrorCode:InvalidXmlDocument
linenumber:2
lineposition:683
reason:Element IndexDocument is only expected when StaticWebsite/Enabled is enabled.
Issue script & Debug output
Expected behavior
No error and the property unset
Environment Summary
2024-03-13T11:37:23.9284685Z azure-cli 2.57.0 *
2024-03-13T11:37:23.9285088Z
2024-03-13T11:37:23.9285333Z core 2.57.0 *
2024-03-13T11:37:23.9285568Z telemetry 1.1.0
2024-03-13T11:37:23.9285717Z
2024-03-13T11:37:23.9285921Z Extensions:
2024-03-13T11:37:23.9286199Z azure-devops 1.0.0
2024-03-13T11:37:23.9286351Z
2024-03-13T11:37:23.9286573Z Dependencies:
2024-03-13T11:37:23.9286802Z msal 1.26.0
2024-03-13T11:37:23.9287081Z azure-mgmt-resource 23.1.0b2
Additional context
No response
The text was updated successfully, but these errors were encountered: