azure

Azure CLI

Terminology CLI Bash login az login Find commands Intelligent command search az find blob az find 'az monitor activity-log list' Get help Find commands az --help Get info on a command az storage blob --help Output formats Output formats json jsonc yaml table tsv az vm list --out table Filter Output Use JMESPath to query a request az group list --query "[?name == '<rg name>']" az group list --query "[? »

Azure Resource Manager (ARM)

Terminology Resource - A managable item in Azure. Resource group - A container holding resources. Resource provider - A service that supplies recources you can deploy. ARM template - Azure Resource Manager template. A SJON template file to deploy resources. 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. Resources can only be in one resource group. »

Azure Configuration Management

Azure Config management Use tools like Ansible Chef Puppet DSC Cloud-init Azure Custom Script Extension Packer Terraform Jenkins https://docs.microsoft.com/nl-nl/azure/virtual-machines/windows/infrastructure-automation DSC »

Azure Virtual Machines

Azure VM machine extensionAzure VM ScalingAzure VM AvailabilityAzure VM Powershell createAzure VM PowershellTerminology Azure Virtual Machine creation checklist Think about the following when create a new VM: Start with the network Name the VM Decide the location for the VM Determine the size of the VM Understanding the pricing model Storage for the VM Select an operating system Naming a VM Azure VM names can have up to 15 charactars on a Windows VM and 64 charactars on a Linux VM. »

Azure

Azure ADAzure policiesAzure SubscriptionsManage Azure resources and groups »

Azure AD

Powershell azureAD login The powershell module AZ has a few basic Ad commands. The module got a lot more including azure graph. »

Azure policies

Assign Policy Powershell # Assign policy to recource group $rg = Get-AzResourceGroup -name RG1 $policy_def = Get-AzPolicyDefinition | ?{ $_.Properties.Displayname -eq "Audit VMs that do not use managed disks" } New-AzPolicyAssignment -Name "Check for managed disks" -DisplayName "Check for managed disks" -Scope $rg.ResourceId -PolicyDefinition $policy_def Bash »