Exam-Answer

Home / Microsoft / AZ-300 / Question 72

Prev Question
Next Question

Question 72

You have a custom role in a file named CustomRole.json.

You need to add this role to Azure by using Azure CLI.

Which command should you use?

Answers



A B C D

Advertisement

Explanation

You should use the following command:

az role definition create --role-definition CustomRole.json

The az role definition create command creates the role. The --role-definition parameter specifies the name of the role definition JSON file.

You should not use the following command:

az role create --role-definition CustomRole.json

This command is missing the definition token.

You should not use the following command:

az role definition create CustomRole.json

This command is missing the --role-definition parameter.

You should not use the following command:

az role create CustomRole.json

This command is missing the definition token and --role-definition parameter.

References

Comments

Load more
Prev Question
Next Question