【问题标题】:give acess to users in directory StorageV2 (general purpose v2)授予目录 StorageV2 中的用户访问权限(通用 v2)
【发布时间】:2021-02-28 00:38:40
【问题描述】:

StorageV2(通用v2)中有一些目录如下图

我的角色是贡献者 我想授予用户读取 W 名为“2000”的目录及其所有子目录的权限 我该怎么做?使用 Powershell 可以做到这一点吗?

如果你能帮忙就太好了

【问题讨论】:

    标签: azure powershell azure-active-directory azure-powershell azure-data-lake


    【解决方案1】:

    您可以使用可在 Powershell 中运行的 Azure CLI 来执行此操作。作为贡献者,您应该能够使用 az role assignment create 命令执行此操作。

    请记住,此命令的权限是在容器范围内授予的。 Data Lake 存储可用于授予文件夹级别的权限。 Blob 存储实际上没有文件夹,它只是以这种方式显示,以便于导航。

    az role assignment create \
        --role "Storage Blob Data Contributor" \
        --assignee <email> \
        --scope "/subscriptions/<subscription>/resourceGroups/<resource-group>/providers/Microsoft.Storage/storageAccounts/<storage-account>/blobServices/default/containers/<container>"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-05-07
      • 1970-01-01
      • 2013-05-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多