【问题标题】:Azure - Using bicep to set storage container access policyAzure - 使用二头肌设置存储容器访问策略
【发布时间】:2021-09-10 20:23:03
【问题描述】:

Bicep 可以用来执行此 Azure CLI 脚本的功能吗?

az storage container policy create \
    --container-name $containerName \
    --name $policyName \
    --account-name $storageAccountName \
    --account-key $accountKey \
    --permissions $permissions \
    --start $policyStartTime \
    --expiry $policyEndTime

【问题讨论】:

    标签: azure azure-devops azure-bicep


    【解决方案1】:

    没有。

    这在 ARM 中是不可能的(请参阅 Azure Blob Storage Container Stored Access Policy with ARM)。 Bicep 只是一个编译器,可以将 bicep 代码翻译成 ARM 代码,然后用于部署。

    【讨论】:

      猜你喜欢
      • 2019-03-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-13
      相关资源
      最近更新 更多