Exam-Answer

Home / Microsoft / AZ-300 / Question 73

Prev Question
Next Question

Question 73

You want to add a security group named Development to the Website Contributor built-in role.

You need to use Azure CLI.

Which command should you use?

Answers



A B C D

Advertisement

Explanation

You should use the following command:

az role assignment create --assignee "Development" --role "Website Contributor"

This command adds the group development to the role Website Contributor. The --assignee parameter specifies the user name or group. The --role parameter specifies the role.

You should not use the following command:

az role definition create --resource-group "Development" --role "Website Contributor"

This command creates a role, not a role assignment.

You should not use the following command:

az role definition create --assignee "Development" --role "Website Contributor"

This command creates a role, not a role assignment.

You should not use the following command:

az role assignment create --resource-group "Development" --role "Website Contributor"

The --resource-group parameter specifies the name of a resource group, not a security group.

References

Comments

Load more
Prev Question
Next Question