Using Azure Resource Manager (ARM) Flashcards
We might put all resources that are core infrastructure into this resource group. But we could also organize them strictly by resource type. For example, put all VNets in one resource group, all virtual machines in another resource group, and all Azure Cosmos DB instances in yet another resource group.
We could organize them by environment (prod, qa, dev).
We could organize them by department (marketing, finance, human resources).
Resource Group - Organizing principles
Since resource groups are a scope of RBAC, you can organize resources by who needs to administer them.
Resource Group - Organizing for authorization
placing resources in the same resource group is a way to group them for usage in billing reports. If you’re trying to understand how your costs are distributed in your Azure environment, grouping them by resource group is one way to filter and sort the data to better understand where costs are allocated.
Resource Group - Organizing for billing
name/value pairs of text data that you can apply to resources and resource groups.
Tags
ALI CLI “Tag”
az resource tag –tags Department=Finance \
- -resource-group msftlearn-core-infrastructure-rg \ - -name msftlearn-vnet1 \ - -resource-type "Microsoft.Network/virtualNetworks"
You can use tags to group your billing data. For example, if you’re running multiple VMs for different organizations, use the tags to group usage by cost center. You can also use tags to categorize costs by runtime environment, such as the billing usage for VMs running in the production environment. When exporting billing data or accessing it through billing APIs, tags are included in that data and can be used to further slice your data from a cost perspective.
tags for organization
Azure Policy - Note
You can enforce naming conventions across your Azure environment. You can also enforce that specific tags are applied to resources. Let’s take a look at how policies work.
We could use policy to restrict which Azure regions we can deploy resources to.
We could use policy to restrict which types of virtual machine sizes can be deployed.
We could also use policy to enforce naming conventions.
RBAC allows you to perform specific actions, such as read, write, or delete. Therefore, if one role assignment grants you read permissions to a resource group, and a different role assignment grants you write permissions to the same resource group, you will have both read and write permissions on that resource group.
RBAC - Allow Access
a setting that can be applied to any resource to block modification or deletion.
Resource locks