New-​Azure​Rm​Web​App​Slot

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>]
   [<CommonParameters>]

Description

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

Examples

Example 1

PS C:\> New-AzureRmWebApp -ResourceGroupName Default-Web-WestUS -Name "ContosoSite" -Location "West US" -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.

Required Parameters

-Name

Webapp Name

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Resource Group Name

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-AppServicePlan

App Service Plan Name

Type:String
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AppSettingsOverrides

App Settings Overrides Hashtable

Type:Hashtable
Position:8
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AseName

App Service Environment Name

Type:String
Position:9
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AseResourceGroupName

App Service Environment Resource Group Name

Type:String
Position:9
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IgnoreCustomHostNames

Ignore Custom HostNames Option

Type:SwitchParameter
Position:7
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IgnoreSourceControl

Ignore Source Control Option

Type:SwitchParameter
Position:6
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Slot

Webapp Slot Name

Type:String
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SourceWebApp

Source WebApp Object

Type:Site
Position:4
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False