New-AzWebAppSlot    
	
   
 
	
		Creates an Azure Web App slot.
	 
	Syntax 
	
		Default (Default)
	 
	
		New-AzWebAppSlot
    [-ResourceGroupName] <String>
    [-Name] <String>
    [[-Slot] <String>]
    [[-AppServicePlan] <String>]
    [[-SourceWebApp] <PSSite>]
    [-IgnoreSourceControl]
    [-IgnoreCustomHostNames]
    [[-AppSettingsOverrides] <Hashtable>]
    [[-AseName] <String>]
    [[-AseResourceGroupName] <String>]
    [-ContainerImageName <String>]
    [-ContainerRegistryUrl <String>]
    [-ContainerRegistryUser <String>]
    [-ContainerRegistryPassword <SecureString>]
    [-EnableContainerContinuousDeployment]
    [-CopyIdentity]
    [-AsJob]
    [-Tag <Hashtable>]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]
 
	 
	Description 
	
		The New-AzWebAppSlot  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 
	
		New-AzWebAppSlot -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.
	 
	Parameters 
		-AppServicePlan   
		App Service Plan Name or App Service Plan Id. If the Slot and App Service Plan are in different Resource Groups, use the ID instead of the name.
The App Service Plan Id can be retrieved using:
$asp = Get-AzAppServicePlan -ResourceGroup  myRG -Name MyWebapp
$asp.id returns the App Service Plan Id.
		Parameter properties 
		
				Type: String 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: 3  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-AppSettingsOverrides   
		App Settings Overrides Hashtable. It works only with SourceWebApp parameter.
		Parameter properties 
		
				Type: Hashtable 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: 8  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-AseName  
		App Service Environment Name
		Parameter properties 
		
				Type: String 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: 9  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-AseResourceGroupName    
		App Service Environment Resource Group Name
		Parameter properties 
		
				Type: String 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: 10  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-AsJob  
		Run cmdlet in the background
		Parameter properties 
		
				Type: SwitchParameter 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: Named  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-ContainerImageName   
		Container Image Name and optional tag, for example (image:tag)
		Parameter properties 
		
				Type: String 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: Named  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-ContainerRegistryPassword   
		Private Container Registry Password
		Parameter properties 
		
				Type: SecureString 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: Named  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-ContainerRegistryUrl   
		Private Container Registry Server Url
		Parameter properties 
		
				Type: String 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: Named  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-ContainerRegistryUser   
		Private Container Registry Username
		Parameter properties 
		
				Type: String 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: Named  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-CopyIdentity  
		Copies the managed identity from the parent or source WebApp.
		Parameter properties 
		
				Type: SwitchParameter 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: Named  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-DefaultProfile  
		The credentials, account, tenant, and subscription used for communication with azure.
		Parameter properties 
		
				Type: IAzureContextContainer 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
				Aliases: AzContext, AzureRmContext, AzureCredential  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: Named  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-EnableContainerContinuousDeployment    
		Enables/Disables container continuous deployment webhook
		Parameter properties 
		
				Type: SwitchParameter 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: Named  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-IgnoreCustomHostNames    
		Ignore Custom HostNames Option
		Parameter properties 
		
				Type: SwitchParameter 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: 7  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-IgnoreSourceControl   
		Ignore Source Control Option
		Parameter properties 
		
				Type: SwitchParameter 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: 6  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-Name 
		Webapp Name
		Parameter properties 
		
				Type: String 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: 1  
						Mandatory: True  
						Value from pipeline: False  
						Value from pipeline by property name: True  
						Value from remaining arguments: False  
				
			 
		-ResourceGroupName   
		Resource Group Name
		Parameter properties 
		
				Type: String 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: 0  
						Mandatory: True  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-Slot 
		Webapp Slot Name
		Parameter properties 
		
				Type: String 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: 2  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-SourceWebApp   
		Source WebApp Object
		Parameter properties 
		
				Type: PSSite 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: 4  
						Mandatory: False  
						Value from pipeline: True  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		-Tag 
		Tags are name/value pairs that enable you to categorize resources
		Parameter properties 
		
				Type: Hashtable 
 
				Default value: None  
				Supports wildcards: False  
				DontShow: False  
		
		Parameter sets 
			
				
					(All) 
					
						 
					 
				 
				
						Position: Named  
						Mandatory: False  
						Value from pipeline: False  
						Value from pipeline by property name: False  
						Value from remaining arguments: False  
				
			 
		CommonParameters 
		
			This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
		 
	
			
			
				
			
			
			
				
			
	Outputs