Powershell saying storage account doesn’t exist


In powershell I verify that it exists by calling the context.


When I try to set it here:

I get this

Been stuck for quite a while. I basically want to write shellscript to create a VM from an existing OS disc. I managed to create a copy of an existing disc using powershell (used context from first command to make it work). But now that I am trying to create the VM configuration using this:

I get this error:

A solution has already been provided for this which brought me here (stuck on missing storage account error).


Set-AzureSubscription Cmdlet expects the storage account specified via -CurrentStorageAccount parameter to be a classic storage account.

Please make sure that you’re specifying a classic storage account’s name and not a resource manager storage account’s name.


Powershell saying storage account doesn’t exist by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply