Powershell and CLI Flashcards

1
Q

Assign a new role

A

New-AZRoleAssignment -SignInName xx -RoleDefinitionName yy -ResourceGroupName yy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Powershell Get Role Assignment

CLI Get Role Assignment

A

Get-AzRoleAssignment
Get-AzDenyAssignment

az role assignment list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Powershell command syntax

A

“Verb, Noun” Syntax
{“Get”, “Set”, “New”, …}
{“AzContext”, “AzRoleAssignment”, … }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly