Move-​Azure​Service

Migrates a cloud service to the Azure Resource Manager stack.

Syntax

Move-AzureService
    [-Abort]
    [-ServiceName] <String>
    [-DeploymentName] <String>
    [-InformationAction <ActionPreference>]
    [-InformationVariable <String>]
    [-Profile <AzureSMProfile>]
    [<CommonParameters>]
Move-AzureService
    [-Commit]
    [-ServiceName] <String>
    [-DeploymentName] <String>
    [-InformationAction <ActionPreference>]
    [-InformationVariable <String>]
    [-Profile <AzureSMProfile>]
    [<CommonParameters>]
Move-AzureService
    [-Prepare]
    [-ServiceName] <String>
    [-DeploymentName] <String>
    [-CreateNewVirtualNetwork]
    [-InformationAction <ActionPreference>]
    [-InformationVariable <String>]
    [-Profile <AzureSMProfile>]
    [<CommonParameters>]
Move-AzureService
    [-Validate]
    [-ServiceName] <String>
    [-DeploymentName] <String>
    [-CreateNewVirtualNetwork]
    [-InformationAction <ActionPreference>]
    [-InformationVariable <String>]
    [-Profile <AzureSMProfile>]
    [<CommonParameters>]
Move-AzureService
    [-Prepare]
    [-ServiceName] <String>
    [-DeploymentName] <String>
    [-UseExistingVirtualNetwork]
    [-VirtualNetworkResourceGroupName] <String>
    [-VirtualNetworkName] <String>
    [-SubnetName] <String>
    [-InformationAction <ActionPreference>]
    [-InformationVariable <String>]
    [-Profile <AzureSMProfile>]
    [<CommonParameters>]
Move-AzureService
    [-Validate]
    [-ServiceName] <String>
    [-DeploymentName] <String>
    [-UseExistingVirtualNetwork]
    [-VirtualNetworkResourceGroupName] <String>
    [-VirtualNetworkName] <String>
    [-SubnetName] <String>
    [-InformationAction <ActionPreference>]
    [-InformationVariable <String>]
    [-Profile <AzureSMProfile>]
    [<CommonParameters>]

Description

The Move-AzureService cmdlet migrates a cloud service and a deployment inside that service to a resource group in the Azure Resource Manager stack.

Examples

Example 1: Prepare service migration

PS C:\> Move-AzureService -Prepare -ServiceName "ContosoService" -DeploymentName "ContosoVM" -CreateNewVirtualNetwork

This command prepares the service named ContosoService for migration to the Azure Resource Manager stack. The migration includes the deployment named ContosoVM.

Example 2: Start service migration

PS C:\> Move-AzureService -Commit -ServiceName "ContosoService" -DeploymentName "ContosoVM"

This command starts migration of the service named ContosoService to the Azure Resource Manager stack. The migration includes the deployment named ContosoVM.

Example 3: Cancel service migration

PS C:\> Move-AzureService -Abort -ServiceName "ContosoService" -DeploymentName "ContosoVM"

This command cancels migration of the service named ContosoService to the Azure Resource Manager stack.

Example 4: Prepare service migration to an existing virtual network

PS C:\> Move-AzureService -Prepare -ServiceName "ContosoService" -DeploymentName "ContosoVM" -UseExistingVirtualNetwork -VirtualNetworkResourceGroupName "VnetRG" -VirtualNetworkName "ContosoVNET" -SubnetName "ContosoSubnet"

This command prepares the service named ContosoService for migration to the Azure Resource Manager stack. The migration includes the deployment named ContosoVM. The migration uses a virtual network that was previously created.

Example 5: Validate service migration

PS C:\> Move-AzureService -Validate -ServiceName "ContosoService" -DeploymentName "ContosoVM" -CreateNewVirtualNetwork

This command validates migration for the service named ContosoService to the Azure Resource Manager stack. The migration includes the deployment named ContosoVM.

Example 6: Validate service migration to an existing virtual network

PS C:\> Move-AzureService -Validate -ServiceName "contosoService" -DeploymentName "contosoVM" -UseExistingVirtualNetwork -VirtualNetworkResourceGroupName "vnetRG" -VirtualNetworkName "contosoVNET" -SubnetName "contosoSubnet"

This command validates migration for the service named ContosoService to the Azure Resource Manager stack. The migration includes the deployment named ContosoVM. The migration uses a virtual network that was previously created.

Required Parameters

-Abort

Indicates that this cmdlet cancels the service migration.

Type:SwitchParameter
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Commit

Indicates that this cmdlet starts the service migration.

Type:SwitchParameter
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CreateNewVirtualNetwork

Indicates that this cmdlet creates a virtual network in the Azure Resource Manager stack.

Type:SwitchParameter
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeploymentName

Specifies the name of the cloud service deployment that this cmdlet migrates.

Type:String
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Prepare

Indicates that this cmdlet prepares the cloud service for migration.

Type:SwitchParameter
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServiceName

Specifies the name of the cloud service that this cmdlet migrates.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-SubnetName

Specifies the name of the Subnet inside the virtual network.

Type:String
Position:6
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UseExistingVirtualNetwork

Indicates that this cmdlet migrates the cloud service to an existing virtual network in the Azure Resource Manager stack.

Type:SwitchParameter
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Validate

Specifies that this cmdlet validates the cloud service for migration.

Type:SwitchParameter
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VirtualNetworkName

Specifies the name of a virtual network.

Type:String
Position:5
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VirtualNetworkResourceGroupName

Specifies the name of the resource group of an existing virtual network.

Type:String
Position:4
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False