locked
MissingSubscriptionRegistration: The subscription is not registered to use namespace 'Microsoft.Storage' RRS feed

  • Question

  • Hi

     I am trying to add Azure storage account using powershell to my Azure account. I am getting following error 

    New-AzureStorageAccount -StorageAccountName plstore2 -Location "East US" -Type Standard_GRS
    cmdlet New-AzureStorageAccount at command pipeline position 1
    Supply values for the following parameters:
    (Type !? for Help.)
    ResourceGroupName: PushpakR

    New-AzureStorageAccount : MissingSubscriptionRegistration: The subscription is not registered to use namespace 'Microsoft.Storage'.
    At line:1 char:1
    + New-AzureStorageAccount -StorageAccountName plstore2 -Location "East US" -Type S ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : CloseError: (:) [New-AzureStorageAccount], CloudException
        + FullyQualifiedErrorId : Microsoft.Azure.Commands.Management.Storage.NewAzureStorageAccountCommand

    Please help..

    PS I have already added azure account..

    • Moved by David Ebbo Friday, July 10, 2015 1:31 PM Not WebApp related, moving to Command Line Tools
    Friday, July 10, 2015 3:46 AM

Answers

  • Fixed it by 

    Switch-AzureMode -Name AzureServiceManagement

    • Marked as answer by pushpakLaddha Friday, July 10, 2015 4:34 PM
    Friday, July 10, 2015 4:33 PM