[email protected]
& [email protected]
are E-mail addresses of our organization. These emails are also used as the Azure login accounts. I've set up a Terraform code to use the AzureAD to access to the VM in Azrue. My question is How Can I grand those accounts the role of Virtual Machine User Login?
resource "azurerm_role_assignment" "test" {
scope = "${data.azurerm_management_group.primary.id}"
role_definition_id = "Virtual Machine User Login"
principal_id = "[email protected], [email protected]"
}
The official documents says principal_id is the ID of the Principal (User, Group, Service Principal, or Application) to assign the Role Definition to. Isn't the that the email address is the ID of the user?