
Answer-first summary for fast verification
Answer: Get-AzRoleDefinition -name 'Reader' | ConvertTo-Json
The correct command to run before creating a custom Azure role named Role1, based on the Reader role, is Get-AzRoleDefinition -name 'Reader' | ConvertTo-Json. This command retrieves the definition of the Reader role and converts it into a JSON format, which can then be used as a base template for creating the custom role. This ensures that Role1 has the same permissions and structure as the Reader role, which can be further modified as needed. Therefore, the correct option is A.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
What command should be executed prior to creating a custom Azure role named Role1, based on the Reader role?
A
Get-AzRoleDefinition -name 'Reader' | ConvertTo-Json
B
Get-AzRoleDefinition -Name 'Reader' | ConvertTo-Json
C
Get-AzRoleDefinition <role_name> | ConvertTo-Json
D
Get-AzRoleDefinition + ConvertTo-Json
No comments yet.