Skip to content

Instantly share code, notes, and snippets.

@olafloogman
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olafloogman/a98681ab59d1c56f2a8f to your computer and use it in GitHub Desktop.
Save olafloogman/a98681ab59d1c56f2a8f to your computer and use it in GitHub Desktop.
PS C:\> Get-AzureResource -ResourceGroupName Default-SQL-AustraliaEast | Move-AzureResource -DestinationResourceGroupName RG-AU-MyApplication
Confirm
Are you sure you want to move resource(s) into the resource goup named 'RG-AU-MyApplication' - the resource(s): '
/subscriptions/12360114-0ea0-40a5-8b75-293e7bdbd751/resourceGroups/Default-SQL-AustraliaEast/providers/Microsoft.Sql/servers/p4oaa44wq4/databases/myausqldb
/subscriptions/12360114-0ea0-40a5-8b75-293e7bdbd751/resourceGroups/Default-SQL-AustraliaEast/providers/Microsoft.Sql/servers/p4oaa44wq4'
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y
Move-AzureResource : ResourceNotTopLevel: Identifier '/subscriptions/12360114-0ea0-40a5-8b75-293e7bdbd751/resourceGroups/Default-SQL-AustraliaEast/providers/Microsoft.Sql/servers/p4oaa44wq4/databases/myausqldb' is not a top level resource.
At line:1 char:66
+ Get-AzureResource -ResourceGroupName Default-SQL-AustraliaEast | Move-AzureResou ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Move-AzureResource], CloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.MoveAzureResourceCommand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment