Skip to content

Instantly share code, notes, and snippets.

@devigned
Last active October 12, 2015 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save devigned/7db8d8ebe9913ef7f8bc to your computer and use it in GitHub Desktop.
Save devigned/7db8d8ebe9913ef7f8bc to your computer and use it in GitHub Desktop.
Getting started with Azure 1.0 Preview Resource Manager
# To login to Azure Resource Manager
Login-AzureRmAccount
# To view all subscriptions for your account
Get-AzureRmSubscription
# To select a default subscription for your current session
Get-AzureRmSubscription –SubscriptionName “your sub” | Select-AzureRmSubscription
# To select the default storage context for your current session
Set-AzureRmCurrentStorageAccount –ResourceGroupName “your resource group” –StorageAccountName “your storage account name”
# To import the Azure.Storage data plane module (blob, queue, table)
Import-Module Azure.Storage
# To list all of the blobs in all of your containers in all of your accounts
Get-AzureRmStorageAccount | Get-AzureStorageContainer | Get-AzureStorageBlob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment