< Back

Remove-AzureRmWebAppSlot

Tue Jan 29, 2019 10:12 pm

NAME Remove-AzureRmWebAppSlot



SYNOPSIS







SYNTAX

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

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



Remove-AzureRmWebAppSlot [-WebApp] <Site> [-DefaultProfile <IAzureContextContainer>] [-Force] [-Confirm] [-WhatIf] [-AsJob] [<CommonParameters>]





DESCRIPTION

The Remove-AzureRmWebAppSlot cmdlet removes an Azure Web App Slot provided the resource group and Web App name. This cmdlet, by default, also

removes all slots and metrics.





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



-Force [<SwitchParameter>]

Forcefully Remove Option



Required? false

Position? named

Default value False

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



-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



-AsJob [<SwitchParameter>]

Run cmdlet in the background



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

Microsoft.Azure.AzureOperationResponse







NOTES









Example 1: Remove a Web App Slot



PS C:\\>Remove-AzureRmWebAppSlot -ResourceGroupName "Default-Web-WestUS" -Name "ContosoSite" -Slot "ContosoSlot"



This command removes the Slot named Slot001 associated with Web App ContosoSite that belongs to the resource group named Default-Web-WestUS.







RELATED LINKS

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

Get-AzureRmWebAppSlot

New-AzureRmWebAppSlot

Restart-AzureRmWebAppSlot

Reset-AzureRmWebAppSlotPublishingProfile

Restart-AzureRmWebAppSlot

Stop-AzureRmWebAppSlot

Get-AzureRmWebApp