azure - 授予 StorageV2 目录中的用户访问权限(通用 v2)
问题描述
StorageV2(通用v2)中有一些目录如下图
我的角色是贡献者 我想授予用户读取 W 名为“2000”的目录及其所有子目录的权限 我该怎么做?Powershell可以做到这一点吗?
如果你能帮忙就太好了
解决方案
您可以使用可在 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>"
推荐阅读
- azure-active-directory - 使用 loginwithazureactivedirectory 和 expressmode 的 Azure 活动目录
- json - 使用 JsonConvert.Deserialize 时变量显示“无”
- python - “a:1”不应该是python中的语法错误吗?
- acumatica - 使用 DLL 发布 Acumatica 导致 System.BadImageFormatException
- http - ETag 标头是否会使 Cache-Control 标头过时?那么如何确保 Cache-Control 无害呢?
- java - Hibernate:实体管理器工厂的问题
- python-3.x - “如何在 PYTHON 中接收声音以及如何根据其频率对其进行区分”
- android - 快照与当前 VM 配置 Flutter 不兼容
- python - Python中的自定义异常 - 变量的测试值
- javascript - 使用 mark.js 突出显示仅适用于 1-3 个字母