Can't move Database from One resource group to another RRS feed

  • Question

  • Hello Team,

    We were trying to move a database from one resource group to another resource group. Unfortunately, we  got the below error message while tried to move the database :

    Move-AzureRmResource : ResourceNotTopLevel : Identifier '<resouceId>' is not a top level
    At line:1 char:1
    + Move-AzureRmResource -DestinationResourceGroupName EasyGov -ResourceId /subscrip ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : CloseError: (:) [Move-AzureRmResource], ErrorResponseMessageException
        + FullyQualifiedErrorId : ResourceNotTopLevel,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.Move

    Please see the below command which we used to move the database,

    Move-AzureRmResource -DestinationResourceGroupName EasyGov -ResourceId <resourceId>

    Could you please check this and let us know how can we move the database to another resource group?

    Thanks in advance

    Sunday, December 13, 2015 2:15 PM

All replies

  • Hi,

    It is not possible to move individual databases across resource groups, the entire server needs to be moved. Please let me know if you have any other questions.



    Thursday, December 17, 2015 8:04 PM