Hello, everyone!
I've been getting PowerShell errors since last Thursday whenever I attempt to create a regular storage container in a storage account.
New-AzureStorageContainer : The remote name could not be resolved: 'microsoft.windowsazure.commands.servicemanagement.model.storageservicepropertiesoperationcontext.blob.core.windows.net'
At C:\TestLab.ps1:141 char:10
+ else{New-AzureStorageContainer -Name ($VMName).ToLower() -Con ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureStorageContainer], StorageException
+ FullyQualifiedErrorId : StorageException,Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.NewAzureStorageCont
ainerCommand
The storage account creates ok, I can obtain my storage context just fine. If I create these containers in the Portal, everything works well. I can manipulate the containers just fine if they're created in the portal.
The exact command I'm using is:
if(Get-AzureStorageContainer -Name ($VMName).ToLower() -Context $StorageContext -ErrorAction SilentlyContinue){"$VMName Container Exists"}else{New-AzureStorageContainer -Name ($VMName).ToLower() -Context $StorageContext}
- Edited by BMOT1 16 hours 21 minutes ago