Azure

From Piszczynski
Revision as of 21:54, 22 February 2021 by piszczynski>Aleks (→‎Azure powershell)

Azure

Set Subsctiption in powershell session: Look at the subscriptions and select the id of the one you want:

  • Get-AzSubscription
  • $Context = Get-AzSubscription -SubscriptionID <subID>; Set-AzContext $Context


Azure CLI

Identify data locations in shell

  • df


Azure powershell

Get Policy info

  • Get-AzPolicyDefinition | where {$_.Properties.DisplayName -eq "<policyname>"}


Get Resource group info

  • Get-AzResourceGroup <name of group>