< Back

Switch-AzureRmWebAppSlot

Tue Jan 29, 2019 10:12 pm

NAME Switch-AzureRmWebAppSlot



SYNOPSIS

Swap two slots with a Web App





SYNTAX

Switch-AzureRmWebAppSlot [-ResourceGroupName] <String> [-SourceSlotName] <String> [[-DestinationSlotName] <String>] [-Name] <String>

[[-SwapWithPreviewAction] {ApplySlotConfig | CompleteSlotSwap | ResetSlotSwap}] [[-PreserveVnet] <Boolean>] [-DefaultProfile

<IAzureContextContainer>] [-Confirm] [-WhatIf] [<CommonParameters>]



Switch-AzureRmWebAppSlot [-SourceSlotName] <String> [-WebApp] <Site> [[-DestinationSlotName] <String>] [[-SwapWithPreviewAction] {ApplySlotConfig

| CompleteSlotSwap | ResetSlotSwap}] [[-PreserveVnet] <Boolean>] [-DefaultProfile <IAzureContextContainer>] [-Confirm] [-WhatIf]

[<CommonParameters>]





DESCRIPTION

The Switch-AzureRmWebAppSlot switches two slots associated with an Azure Web App.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DestinationSlotName <String>

Destination Slot Name



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

WebApp Name



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-PreserveVnet <Boolean>

Preserve Vnet Boolean



Required? false

Position? 3

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

Resource Group Name



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-SourceSlotName <String>

Source Slot Name



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-SwapWithPreviewAction <SwapWithPreviewAction>

Swap With Preview Action



Required? false

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WebApp <Site>

WebApp Object



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Site

Parameter 'WebApp' accepts value of type 'Site' from the pipeline





OUTPUTS



NOTES









Example 1



PS C:\\> Switch-AzureRmWebAppSlot -SourceSlotName "sourceslot" -DestinationSlotName "destinationslot" -ResourceGroupName "Default-Web-WestUS" -Name

"ContosoWebApp"



This command will switch slot "sourceslot" slot with "destinationslot" for for Web App ContosoWebApp associated with the resource group

Default-Web-WestUS







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... webappslot