Show Menu
Cheatography

Azure PowerShell Cheat Sheet (DRAFT) by

Azure PowerShell Azure PowerShell Azure PowerShell

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Resour­ceGroup

New-Az­Res­our­ceGroup
New-Az­Res­our­ceGroup -Name $Resou­rce­Gro­upName -Location $Location

Connec­t-A­zAc­count

$AppId = "*"
$AppSecret = "*"

$SecureSecret = $AppSecret | ConvertTo-SecureString -AsPlainText -Force

$Credential = New-Object -TypeName System.Management.Automation.PSCredential `
-ArgumentList $AppId, $SecureSecret

$TenantID = "*"
Connect-AzAccount -ServicePrincipal -Credential $Credential -Tenant $TenantID