无法找到具有电子邮件地址为upn的用户:[email protected]

问题描述 投票:0回答:1

我键入此cmd来授予密钥库许可,以使用我的地址的UPN(作为订阅的唯一用户)访问存储帐户,以便管理存储访问密钥:

az keyvault set-policy -n keyvault02 --upn [email protected] --storage-permissions get list delete set update regeneratekey getsas listsas deletesas setsas recover backup restore purge

但我遇到了此错误消息:

Unable to find user with upn '[email protected]'
Unable to get object id from principal name

AD许可是否存在问题(需要特定许可)或其他?

等待您的帮助

azure azure-active-directory command-line-interface
1个回答
0
投票

我可以复制您的问题:enter image description here


我尝试以下步骤解决。

# get user principal name(upn)
az ad user show --id {user-object-id}

enter image description here

# Give your user account permission to managed storage accounts    
az keyvault set-policy --name {the key vault name} --upn {the user principal name} --storage-permissions get list delete set update regeneratekey getsas listsas deletesas setsas recover backup restore purge

enter image description here

这是doc

© www.soinside.com 2019 - 2024. All rights reserved.