列出的az角色分配在哪里

时间:2020-05-04 16:20:10

标签: azure azure-cli

我通过以下方式将服务主体分配给了VNET

az role assignment create --assignee SP_CLIENT_ID --scope VNET_ID --role Contributor

我在哪里可以查看配置(Azure门户或cli)?

更新:我一直在寻找子网角色分配,这些角色有点隐藏在:vNet>子网>受管用户>角色分配。

1 个答案:

答案 0 :(得分:1)

我在哪里可以查看配置(Azure门户或cli)?

1。使用Azure门户:

导航到门户中的vnet-> Access control (IAM)-> Role assignments->搜索服务主体的名称,如下所示。

enter image description here

2。使用Azure CLI:

az role assignment list --assignee SP_CLIENT_ID --scope VNET_ID

enter image description here