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

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 SDKs\Azure\PowerShell\ServiceManagement\Azure

Know the AzurePublishSettingFile location

Import-AzurePublishSettingsFile C:\Azure\Azure_credentials_file.publishsettings

 

 

Steps to Create Azure Storage Account

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

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

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


    image
    image

Categories: Storage
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: