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
- Open PowerShell Window and Import PowerShell ModuleImport-Module “C:Program Files (x86)Microsoft SDKsAzurePowerShellServiceManagementAzureAzure.psd1”
- Import the Azure Publish Setting File
Import-AzurePublishSettingsFile C:AzureAzure_credentials_file.publishsettings
- Create the Azure Storage Account
New-AzureStorageAccount -StorageAccountName “dbproxpstest” -Location “Southeast Asia” -Label “psstorage”