Was working on an Azure Storage is fun and it does require hands on experience to understand Azure storage capabilities. This post is targeted on creating an Azure storage account and container. I was successful in creating Azure storage account and face palm with bunch of errors while creating containers. Will dive into the scenario.
This activity assumes your environment has
a) Azure PowerShell modules installed
b) Azure Subscription
c) Co-Admin / Service Administrator access to the subscription
- Verify your subscription details using Get-Azuresubscription -Current -ExtendedDetails. Verify “IsDefault” & “IsCurrent” set to True.
- Verify CurrentStorageAccountName is set to VALID name.
New-AzureStorageContainer. When you run the following command for creating Azure Storage Container, the command use the value defined under CurrentStorageAccountName. In my scenario, i was trying to create a storage container on a Storage Account which didnt exist.
From the above screenshot, it is evident that PowerShell settings takes precedence over GUI.