Skip to content

Instantly share code, notes, and snippets.

@olafloogman

olafloogman/rg5

Last active Aug 29, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.