< Back

Restart-AzureRmWebAppSlot

Tue Jan 29, 2019 10:12 pm

NAME Restart-AzureRmWebAppSlot



SYNOPSIS







SYNTAX

Restart-AzureRmWebAppSlot [-ResourceGroupName] <String> [-Name] <String> [-Slot] <String> [-DefaultProfile <IAzureContextContainer>]

[<CommonParameters>]



Restart-AzureRmWebAppSlot [-WebApp] <Site> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

The Restart-AzureRmWebAppSlot cmdlet stops and then starts an Azure Web App Slot. If the Web App Slot is in a stopped state, use the

Start-AzureRmWebAppSlot cmdlet.





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



-Name <String>

WebApp Name



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Resource Group Name



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Slot <String>

WebApp Slot Name



Required? true

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



<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:\\> Restart-AzureRmWebAppSlot -ResourceGroupName "Default-Web-WestUS" -Name "ContosoWebApp" -Slot "Slot001"



This command restarts the slot Slot001 for the web app ContosoWebApp associated with the resource group Default-Web-WestUS







RELATED LINKS

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

Get-AzureRmWebAppSlot

New-AzureRmWebAppSlot

Remove-AzureRmWebAppSlot

Reset-AzureRmWebAppSlotPublishingProfile

Restart-AzureRmWebAppSlot

Stop-AzureRmWebAppSlot

Get-AzureRmWebApp