Powershell and CLI Flashcards
1
Q
Assign a new role
A
New-AZRoleAssignment -SignInName xx -RoleDefinitionName yy -ResourceGroupName yy
2
Q
Powershell Get Role Assignment
CLI Get Role Assignment
A
Get-AzRoleAssignment
Get-AzDenyAssignment
az role assignment list
3
Q
Powershell command syntax
A
“Verb, Noun” Syntax
{“Get”, “Set”, “New”, …}
{“AzContext”, “AzRoleAssignment”, … }