简体   繁体   English

Terraform 导入 azurerm_role_assignment

[英]Terraform Import azurerm_role_assignment

I have to import some roles, in the documentation it states.我必须在它声明的文档中导入一些角色。 The frist uid is easy to find, but what is the second one.第一个uid好找,第二个呢。 When I look into the portal I see that the role is assigned on the resource itself, but can't find a trace of a uid.当我查看门户时,我看到角色是在资源本身上分配的,但找不到 uid 的踪迹。 Can find the uid of the group what has the rights but..可以找到有权限的组的uid但是..

terraform import azurerm_role_assignment.example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/00000000-0000-0000-0000-000000000000

So Bottom line, anybody has this working and willing to share some thoughts?所以最重要的是,有人有这个工作并愿意分享一些想法吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM