gpt4 book ai didi

azure - 以编程方式在 Azure 存储上启用静态网站

转载 作者:行者123 更新时间:2023-12-01 12:07:50 24 4
gpt4 key购买 nike

由于 Azure 存储帐户上的静态网站功能不再处于预览模式,是否可以通过编程方式设置此选项(通过 Powershell Az 命令/Azure CLI)?

目前我能看到的唯一方法是在 UI 中手动执行此操作:

enter image description here

最佳答案

根据文档:

https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website

您可以使用 CLI

az storage blob service-properties update --account-name <ACCOUNT_NAME> --static-website --404-document <ERROR_DOCUMENT_NAME> --index-document <INDEX_DOCUMENT_NAME>

关于azure - 以编程方式在 Azure 存储上启用静态网站,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54824398/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com