Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. # To login to Azure Resource Manager
  2. Login-AzureRmAccount
  3.  
  4. # You can also use a specific Tenant if you would like a faster login experience
  5. # Login-AzureRmAccount -TenantId xxxx
  6.  
  7. # To view all subscriptions for your account
  8. Get-AzureRmSubscription
  9.  
  10. # To select a default subscription for your current session
  11. Get-AzureRmSubscription –SubscriptionName “Free Trial” | Select-AzureRmSubscription
  12.  
  13. # View your current Azure PowerShell session context
  14. # This session state is only applicable to the current session and will not affect other sessions
  15. Get-AzureRmContext
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement