Design and Deploy ARM Templates (10-15%) Flashcards
What are the Design Principles (6) of Resource Groups using ARM?
- Organize Azure Resources
- Logical Grouping
- Should share the same life cycle
- Leverage RBAC
- No Nesting
- Tag and Lock Them
Can a resource group contain resources that reside in different regions?
Yes
What are the 3 built in (basic) roles for Azure?
- Owner - Full Access
- Contributor - create and manage but cant grant access to others
- Reader - View Access
Max # of Custom RBAC roles
2000
What is the Actions property of a custom RBAC role?
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.//
PS: list operations of Azure resource providers
Get-AzureRmProviderOperation
CLI: list operations of Azure resource providers
azure provider operations show
Which property of the custom role specifies the scopes (subscriptions, resource groups, or resources) within which the custom role is available for assignment?
AssignableScopes Property
What is a NotActions property of a custom RBAC role?
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.
Is a NotActions a deny rule for custom RBAC?
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.
What type of files are ARM Templates?
JSON files
PS: Deploy template to resource group
New-AzureRmResourceGroupDeployment -name -ResourceGroupName `
-Templatefile
CLI: Deploy template to resource group
azure group deployment create -f
What are the 2 parts of Azure Policies?
- Policy Definitions - whats going to be locked down
- Policy Assignments - Telling WHERE the Policy definition (scope) will be applied at the Subscription, Azure Resource Group, or Azure Resource.
True/False: ARM policy is a default allow and explicit deny system.
True