Move-​Azure​Deployment

Swaps deployments between production and staging.

Syntax

Move-AzureDeployment
    [-ServiceName] <String>
    [-InformationAction <ActionPreference>]
    [-InformationVariable <String>]
    [-Profile <AzureSMProfile>]
    [<CommonParameters>]

Description

The Move-AzureDeployment cmdlet swaps the virtual IP addresses of deployments in production and staging environments. This cmdlet swaps a deployment that currently runs in the staging environment to the production environment, and a deployment that runs in the production environment to the staging environment. If there is a deployment in the staging environment and no deployment in the production environment, the cmdlet moves the deployment to production. If there is a deployment in the production environment and no deployment in the staging environment, the cmdlet fails.

Examples

Example 1: Swap deployments for a service

PS C:\> Move-AzureDeployment -ServiceName "ContosoService"

This command swaps the deployments of the service named ContosoService between the production and staging environments.

Required Parameters

-ServiceName

Specifies the name of the service for which this cmdlet swaps production and staging deployments.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
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

Outputs

ManagementOperationContext