Charles Lamanna

My feedback

  1. 1,129 votes
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)

    We’ll send you updates on this idea

    74 comments  ·  Azure portal » Resource management  ·  Flag idea as inappropriate…  ·  Admin →

    Hey Folks,

    We have made some great progress on this idea and most of our services today do support move resources across groups.

    We are still working towards 100% support and while we do that it would be great if you can help us prioritize the missing services.

    Please file individual asks on each service category present in uservoice and vote for it.

    Thanks,
    Azure Portal Team

    An error occurred while saving the comment
    Charles Lamanna commented  · 

    @Graham -- the resource Id is a field on the resource when it comes back from Get-AzureResource and looks like "/subscriptions/{id}/resourceGroups/.../storageAccounts/sa1"

    As an example Powershell command:

    PS C:\> $storageAccounts = Get-AzureResource -ResourceType Microsoft.ClassicStorage/storageAccounts

    PS C:\> $storageAccounts[$storageAccounts.Length-3].ResourceId
    /subscriptions/2b5ffd6b-8a96-4976-abd3-20b7957af61d/resourceGroups/londondemo/providers/Microsoft.ClassicStorage/storag
    eAccounts/doozie

    PS C:\> Move-AzureResource -DestinationResourceGroupName linuxdemo -ResourceId $storageAccounts[$storageAccounts.Length-
    3].ResourceId

    Confirm
    Are you sure you want to move resource(s) into the resource goup named 'linuxdemo' - the resource(s): '
    /subscriptions/2b5ffd6b-8a96-4976-abd3-20b7957af61d/resourceGroups/londondemo/providers/Microsoft.ClassicStorage/storag
    eAccounts/doozie'
    [Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y

    and here is the storage account after being moved:
    Name : doozie
    ResourceGroupName : linuxdemo
    ResourceType : Microsoft.ClassicStorage/storageAccounts
    ParentResource :
    Location : westeurope
    Permissions :
    Actions NotActions
    ======= ==========
    *

    ResourceId : /subscriptions/2b5ffd6b-8a96-4976-abd3-20b7957af61d/resourceGroups/linuxdemo/providers/Microsoft.Cl
    assicStorage/storageAccounts/doozie

    An error occurred while saving the comment
    Charles Lamanna commented  · 

    We have released a new powershell cmdlet to move resources across resource groups. Not all resources have support yet, but the "main" ones do like hosted services, virtual machines & storage accounts.

    We will continue to fill out all the services over the next month.

    get-help Move-AzureResource

    NAME

    Move-AzureResource

    SYNTAX

    Move-AzureResource -DestinationResourceGroupName <string> -ResourceId <string[]> [-DestinationSubscriptionId

    <string>] [-Force] [-PassThru] [-Profile <AzureProfile>] [-WhatIf] [-Confirm] [<CommonParameters>]

    Move-AzureResource -DestinationResourceGroupName <string> -DestinationSubscriptionName <string> -ResourceId

    <string[]> [-Force] [-PassThru] [-Profile <AzureProfile>] [-WhatIf] [-Confirm] [<CommonParameters>]

    ALIASES

    None

    REMARKS

    None

  2. 11 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    under review  ·  0 comments  ·  Storage » General  ·  Flag idea as inappropriate…  ·  Admin →
    Charles Lamanna shared this idea  · 

Feedback and Knowledge Base