Restore-AzureWebsiteDeployment

Redeploys a previous deployment of a website in Azure.

Syntax

Restore-AzureWebsiteDeployment
       [-CommitId <String>]
       [-Force]
       [-Name <String>]
       [-Slot <String>]
       [-Profile <AzureSMProfile>]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

This topic describes the cmdlet in the 0.8.10 version of the Microsoft Azure PowerShell module. To get the version of the module you're using, in the Azure PowerShell console, type (Get-Module -Name Azure).Version.

The Restore-AzureWebsiteDeployment cmdlet redeploys a previous deployment of a website in Azure. This process replaces the current deployment with the selected deployment.

Examples

Example 1: Redeploy a site

PS C:\> Restore-AzureWebsiteDeployment -Name "ContosoSite" -CommitId "f876543210"

This command redeploys the deployment that has the ID f876543210 for the website named ContosoSite.

Optional Parameters

-CommitId

Specifies the identifier of the deployment to redeploy.

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

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Force

If enabled, redeploys the previous deployment without prompting for confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of the website to redeploy.

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

Specifies the slot name.

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

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False