Design and Deploy ARM Templates (10-15%) Flashcards

1
Q

What are the Design Principles (6) of Resource Groups using ARM?

A
  1. Organize Azure Resources
  2. Logical Grouping
  3. Should share the same life cycle
  4. Leverage RBAC
  5. No Nesting
  6. Tag and Lock Them
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Can a resource group contain resources that reside in different regions?

A

Yes

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

What are the 3 built in (basic) roles for Azure?

A
  1. Owner - Full Access
  2. Contributor - create and manage but cant grant access to others
  3. Reader - View Access
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Max # of Custom RBAC roles

A

2000

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

What is the Actions property of a custom RBAC role?

A

The Actions property of a custom role specifies the Azure operations to which the role grants access. It is a collection of operation strings that identify securable operations of Azure resource providers. Operation strings follow the format of:

Microsoft.//

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

PS: list operations of Azure resource providers

A

Get-AzureRmProviderOperation

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

CLI: list operations of Azure resource providers

A

azure provider operations show

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

Which property of the custom role specifies the scopes (subscriptions, resource groups, or resources) within which the custom role is available for assignment?

A

AssignableScopes Property

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

What is a NotActions property of a custom RBAC role?

A

Use the NotActions property if the set of operations that you wish to allow is more easily defined by excluding restricted operations. The access granted by a custom role is computed by subtracting the NotActions operations from the Actions operations.

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

Is a NotActions a deny rule for custom RBAC?

A

No, it is simply a convenient way to create a set of allowed operations when specific operations need to be excluded.

If a user is assigned a role that excludes an operation in NotActions, and is assigned a second role that grants access to the same operation, the user is allowed to perform that operation.

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

What type of files are ARM Templates?

A

JSON files

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

PS: Deploy template to resource group

A

New-AzureRmResourceGroupDeployment -name -ResourceGroupName `
-Templatefile

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

CLI: Deploy template to resource group

A

azure group deployment create -f

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

What are the 2 parts of Azure Policies?

A
  1. Policy Definitions - whats going to be locked down
  2. Policy Assignments - Telling WHERE the Policy definition (scope) will be applied at the Subscription, Azure Resource Group, or Azure Resource.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

True/False: ARM policy is a default allow and explicit deny system.

A

True

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

What are the 2 options for Resource Locks?

A
  1. CanNotDelete

2. ReadOnly

17
Q

Which RBAC roles can create or delete resource locks?

A

Owner or User Access Administrator

18
Q

PS: Lock Resource

A

New-AzureRmResourceLock

19
Q

CLI: Lock Resource

A

az lock create

20
Q

What are the Actions properties for a custom RBAC role with Lock Resource permissions?

A

Microsoft.Authorization/* OR Microsoft.Authorization/locks/*