none
Moving Storage To Another Subscription Causes Error Code:SubscriptionNotValid

    Question

  • Hi All,

    I'm trying to move a storage account from one subscription to another, I'm doing this through the new(ish) Azure Portal, on the storage account > Overview > Change Subscription (The pencil icon next to the subscription name).

    This brings up the storage account as the resource to move, and lets me select the subscription and resource group to move it into.

    The problem is that when I click ok, it spins for a couple of minutes then gives me the following error;

    ERROR TYPE
    Resource move validation failed. Please see details. Diagnostic information: timestamp '20161003T095026Z', subscription id 'XXXXXXXXXX', tracking id 'XXXXXXXXXX', request correlation id 'XXXXXXXXXX'. (Code: ResourceMoveProviderValidationFailed)

    ERROR DETAILS

    Subscription is not registered. (Code:SubscriptionNotRegistered)

    I thought it might be something similar to Resource Type Not Registered, but I've setup a storage account under the target subscription/resource group and am still getting the same issue.

    I've had  read through the guide and I don't think I've missed any of the steps.

    https://azure.microsoft.com/en-gb/documentation/articles/resource-group-move-resources/

    Anyone have any thoughts?

    Thanks,

    Neil

    Monday, October 3, 2016 10:14 AM

Answers

All replies

  • StorageAccount does not support move api. Error message can be improved. Please see a related thread.

    http://stackoverflow.com/questions/33611036/error-when-moving-azure-storage-account-to-another-resource-group

    Monday, October 3, 2016 6:26 PM
  • Thanks for the link.
    Wednesday, October 12, 2016 10:54 AM
  • StorageAccount does not support move api. Error message can be improved. Please see a related thread.

    http://stackoverflow.com/questions/33611036/error-when-moving-azure-storage-account-to-another-resource-group

    I'm having the same problem.

    this article is sating moving storage is avalible

    https://docs.microsoft.com/en-gb/azure/azure-resource-manager/resource-group-move-resources 

    this is the code i use to move the storage account.

    Add-AzureRmAccount

    Get-AzureRmSubscription

    Select-AzureRmSubscription -SubscriptionId "xxxxxxxx-xxxxxxx-xxxxxxxxx"

    $resource = Get-AzureRmResource -ResourceName "STORAGENAME" -ResourceGroupName "RESOURCEGROUPNAME" -ResourceType "Microsoft.Storage/storageAccounts"

    Move-AzureRmResource -DestinationResourceGroupName "NEWRESOURCEGROUP" -DestinationSubscriptionId xxxxx-xxxxx-xxxxxxx-xxxxxxxx" -ResourceId $resource.ResourceId -Force 

    the error i get.

    Move-AzureRmResource : {"error":{"code":"ResourceMoveProviderValidationFailed","message":"Resource move validation failed. Please see details. Diagnostic informatio
    n: timestamp '20170301T105039Z', subscription id 'XXXxxxxx-xxxxxx-xxxxxxx', tracking id 'bbe00ef8-772d-484c-a829-227d30b89ac9', request correlation id 
    '8e70ce8f-db7d-43aa-a43c-513e3e58be2c'.","details":[{"target":"Microsoft.Compute/virtualMachines","message":"{\"error\":{\"code\":\"SubscriptionNotRegistered\",\"me
    ssage\":\"Subscription is not registered.\"}}"}]}}
    At line:1 char:1
    + Move-AzureRmResource -DestinationResourceGroupName "XXXXXXXXX" -Destin ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : CloseError: (:) [Move-AzureRmResource], ErrorResponseMessageException
        + FullyQualifiedErrorId : Conflict,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.MoveAzureResourceCommand

    Any help?

    Wednesday, March 1, 2017 12:32 PM