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?
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.