我已从 JSON 文件创建了一个自定义角色,角色名称为“Storage Blob Operations_Custom” 此角色的目的是我想为我的 Azure 管理员提供除查看相应容器中的 Blob 内容之外的所有数据操作。 我的角色定义如下
{
"name": "Storage Blob Operations_Custom",
"IsCustom": true,
"Description": "Return a container or list of containers + Perform Data Actions on a blob except reading the blob contents",
"Actions": [
"Microsoft.Storage/storageAccounts/blobServices/containers/read"
],
"NotActions": [
"Microsoft.Storage/storageAccounts/blobServices/containers/delete",
"Microsoft.Storage/storageAccounts/blobServices/containers/write",
"Microsoft.Storage/storageAccounts/blobServices/generateUserDelegationKey/action"
],
"DataActions": [
"Microsoft.Storage/storageAccounts/blobServices/containers/blobs/delete",
"Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write",
"Microsoft.Storage/storageAccounts/blobServices/containers/blobs/move/action",
"Microsoft.Storage/storageAccounts/blobServices/containers/blobs/add/action"
],
"NotDataActions": [],
"AssignableScopes": [
"/subscriptions/<my subscription ID>"
]
}
将此角色分配给特定用户后,当我使用该用户帐户登录时,我无法将任何 blob 上传到我拥有的容器,如果我单击任何一个,我也无法查看 blob容器 即使我的数据操作有 blob/delete 和 blob/write,为什么我无法查看 blob 或上传任何 blob? 如何确保我可以看到 blob(不包括内容)并对 blob 执行操作,例如删除、上传、移动和添加。 任何帮助表示赞赏
也许您可以通过无限混乱的“条件”功能来实现此目的:https://learn.microsoft.com/en-us/azure/storage/blobs/storage-auth-abac-attributes#list-blobs