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/39d76dc77d4e4509c3bc to your computer and use it in GitHub Desktop.
Save olafloogman/39d76dc77d4e4509c3bc to your computer and use it in GitHub Desktop.
PS C:\> Get-AzureResource -ResourceGroupName myauvm01 | 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/myauvm01/providers/Microsoft.ClassicCompute/virtualMachines/myauvm01
/subscriptions/12360114-0ea0-40a5-8b75-293e7bdbd751/resourceGroups/myauvm01/providers/Microsoft.ClassicCompute/domainNames/myauvm01'
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y
PS C:\> Get-AzureResource -ResourceGroupName Default-Storage-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-Storage-AustraliaEast/providers/Microsoft.ClassicStorage/storageAccounts/portalvhdse6g9nc1rbv62p'
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment