Azure Resource Manager (ARM)

Terminology

Resource Group

When creating a resource group you supply a location for its metadata about the resources. The resources in the resource group can have various locations.

Some best practices

Resource Tags

Resource tags can be applied to Azure resources to organize resources by categories. Each tag can have a name and value. For example a tag named Environment with a value of Production or Development.

Resource locks

You can set two lock levels to prevent accidental problems. Locks can be set on resources, resource groups and subscriptions. Locks are inherited by child resources.

Powershell cmdlets

Create resource group

New-AzResourceGroup -name MachineGroup1 -Location 'West Europe'

Resource groups

Remove-AzResourceGroup -Name "ContosoRG01"

Resources

Remove-AzResource -ResourceId <resourceId>

Resource locks Powershell

New-AzResourceLock -LockName <lockName> -LockLevel CanNotDelete -ResourceGroupName <resourceGroupName>
Get-AzResourceLock
Remove-AzResourceLock -LockName <Name>
Get-AzResourceLock