Working with Windows Azure Storage –New Storage Account- PowerShell Part – 2


Automating Windows Azure Storage Account creation.. Using this you can create/drop multiple storage account for a customer or organization

Couple of things you need to keep in mind is “No use of CAPITAL letters”   for the [Storage Account Name] or [Label], the script will fail as you can see in the below images.

Know the Azure Module Location Handy if you are using Azure PowerShell Console

C:Program Files (x86)Microsoft SDKsAzurePowerShellServiceManagementAzure

Know the AzurePublishSettingFile location

Import-AzurePublishSettingsFile C:AzureAzure_credentials_file.publishsettings



Steps to Create Azure Storage Account

  1. Open PowerShell Window and Import PowerShell ModuleImport-Module “C:Program Files (x86)Microsoft SDKsAzurePowerShellServiceManagementAzureAzure.psd1”
  2. Import the Azure Publish Setting File

    Import-AzurePublishSettingsFile C:AzureAzure_credentials_file.publishsettings
  3. Create the Azure Storage Account

    New-AzureStorageAccount -StorageAccountName “dbproxpstest” -Location “Southeast Asia” -Label “psstorage”


Leave a Reply

Your email address will not be published.