Azure: Difference between revisions

From Piszczynski
piszczynski>Aleks
(Created page with " == Azure == Set Subsctiption in powershell session: Look at the subscriptions and select the id of the one you want: *Get-AzSubscription *$Context = Get-AzSubscription -Su...")
 
piszczynski>Aleks
No edit summary
Line 1: Line 1:
== Azure ==
== Azure ==


Line 8: Line 7:


*$Context = Get-AzSubscription -SubscriptionID <subID>; Set-AzContext $Context
*$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>"}

Revision as of 20:49, 22 February 2021

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>"}