Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

You can also:

This is helpful if you plan to interact with azure service through scripts.

Code Block
# Connect to Azure with an authenticated account.
Connect-AzAccount

# Get subscriptions that the current account can access.
Get-AzSubscription

# Gets the metadata used to authenticate Azure Resource Manager requests.
Get-AzContext | ft -Wrap -auto

# Sets the tenant, subscription, and environment for cmdlets to use in the current session.
Set-AzContext -SubscriptionName "Visual Studio Enterprise Subscription"
or
Set-AzContext -SubscriptionName "Azure for Students"
***Please note the "SU" subscription is not for academic use.

Check usage in the Azure portal

...