< Back

New-AzureRmWebAppSlot

Tue Jan 29, 2019 10:12 pm

NAME New-AzureRmWebAppSlot



SYNOPSIS

Creates an Azure Web App slot.





SYNTAX

New-AzureRmWebAppSlot [-ResourceGroupName] <String> [-Name] <String> [[-Slot] <String>] [[-AppServicePlan] <String>] [[-SourceWebApp] <Site>]

[[-IgnoreSourceControl]] [[-IgnoreCustomHostNames]] [[-AppSettingsOverrides] <Hashtable>] [[-AseName] <String>] [[-AseResourceGroupName] <String>]

[-DefaultProfile <IAzureContextContainer>] [-AsJob] [<CommonParameters>]





DESCRIPTION

The New-AzureRmWebAppSlot cmdlet creates an Azure Web App Slot in a given a resource group that uses the specified App Service plan and data

center.





PARAMETERS

-AppServicePlan <String>

App Service Plan Name



Required? false

Position? 3

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-AppSettingsOverrides <Hashtable>

App Settings Overrides Hashtable



Required? false

Position? 8

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-AseName <String>

App Service Environment Name



Required? false

Position? 9

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-AseResourceGroupName <String>

App Service Environment Resource Group Name



Required? false

Position? 9

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-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



-IgnoreCustomHostNames [<SwitchParameter>]

Ignore Custom HostNames Option



Required? false

Position? 7

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-IgnoreSourceControl [<SwitchParameter>]

Ignore Source Control Option



Required? false

Position? 6

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? false

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-SourceWebApp <Site>

Source WebApp Object



Required? false

Position? 4

Default value None

Accept pipeline input? True (ByValue)

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 'SourceWebApp' accepts value of type 'Site' from the pipeline





OUTPUTS



NOTES









Example 1



PS C:\\> New-AzureRmWebAppSlot -ResourceGroupName Default-Web-WestUS -Name "ContosoSite" -AppServicePlan "ContosoServicePlan" -Slot "Slot001"



This command creates a Slot named Slot001 under an existing Web App names ContosoSite in the existing resource group named Default-Web-WestUS in

data center West US. The command uses an existing App Service plan named ContosoServicePlan.







RELATED LINKS

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

Get-AzureRmWebAppSlot

Remove-AzureRmWebAppSlot

Restart-AzureRmWebAppSlot

Reset-AzureRmWebAppSlotPublishingProfile

Restart-AzureRmWebAppSlot

Stop-AzureRmWebAppSlot

Get-AzureRmAppServicePlan

Get-AzureRmWebApp