Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Switch-AzureWebsiteSlot

Switch-AzureWebsiteSlot

microsoft.windowsazure.commands.dll

Synopsis

Swaps the production slot for a website with another slot. This works on websites with two slots only

Syntax

Switch-AzureWebsiteSlot [-Name] [-Force] [<CommonParameters>]

Detailed Description

Swaps the production slot for a website with another slot. This works on websites with two slots only

Parameters

-Name <String>

The name of the website

Aliases

None

Required?

false

Position

1

Default value

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Force <>

Do not confirm the swap operation.

Aliases

None

Required?

false

Position

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------- Switch Website Slot --------------

C:\PS>

Switch the azure website MyWebsite backup slot with production slot

Switch-AzureWebsiteSlot -Name MyWebsite

New-AzureWebsite
Get-AzureWebsite
Start-AzureWebsite
Stop-AzureWebsite