Set-AzureRmWebAppSlot

Modifies an Azure Web App slot.

Important

You've reached a webpage for an outdated version of Azure PowerShell. All versions of the AzureRM PowerShell module are outdated, but not out of support. The Az PowerShell module is now the recommended PowerShell module for interacting with Azure. To get started with the Az PowerShell module, see Install Azure PowerShell. To learn how to migrate to the Az PowerShell module, see Migrate Azure PowerShell from AzureRM to Az.

Syntax

Set-AzureRmWebAppSlot
   [[-AppServicePlan] <String>]
   [[-DefaultDocuments] <String[]>]
   [[-NetFrameworkVersion] <String>]
   [[-PhpVersion] <String>]
   [[-RequestTracingEnabled] <Boolean>]
   [[-HttpLoggingEnabled] <Boolean>]
   [[-DetailedErrorLoggingEnabled] <Boolean>]
   [[-AppSettings] <Hashtable>]
   [[-ConnectionStrings] <Hashtable>]
   [[-HandlerMappings] <System.Collections.Generic.IList`1[Microsoft.Azure.Management.WebSites.Models.HandlerMapping]>]
   [[-ManagedPipelineMode] <String>]
   [[-WebSocketsEnabled] <Boolean>]
   [[-Use32BitWorkerProcess] <Boolean>]
   [-AutoSwapSlotName <String>]
   [-NumberOfWorkers <Int32>]
   [-ResourceGroupName] <String>
   [-Name] <String>
   [-Slot] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Set-AzureRmWebAppSlot
   [[-AppServicePlan] <String>]
   [[-DefaultDocuments] <String[]>]
   [[-NetFrameworkVersion] <String>]
   [[-PhpVersion] <String>]
   [[-RequestTracingEnabled] <Boolean>]
   [[-HttpLoggingEnabled] <Boolean>]
   [[-DetailedErrorLoggingEnabled] <Boolean>]
   [[-AppSettings] <Hashtable>]
   [[-ConnectionStrings] <Hashtable>]
   [[-HandlerMappings] <System.Collections.Generic.IList`1[Microsoft.Azure.Management.WebSites.Models.HandlerMapping]>]
   [[-ManagedPipelineMode] <String>]
   [[-WebSocketsEnabled] <Boolean>]
   [[-Use32BitWorkerProcess] <Boolean>]
   [-AutoSwapSlotName <String>]
   [-NumberOfWorkers <Int32>]
   [-WebApp] <Site>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Set-AzureRmWebApp cmdlet sets an Azure Web App Slot.

Examples

Example 1

PS C:\> Set-AzureRmWebAppSlot -ResourceGroupName "Default-Web-WestUS" -Name "ContosoWebApp" -Slot "Slot001" -HttpLoggingEnabled $true

This command sets HttpLoggingEnabled to true for Slot Slot001 pertaining to Web App ContosoWebApp associated with the resource group Default-Web-WestUS

Parameters

-AppServicePlan

App Service Plan Name

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

App Settings HashTable

Type:Hashtable
Position:10
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AutoSwapSlotName

Destination slot name for auto swap

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ConnectionStrings

Connection Strings HashTable

Type:Hashtable
Position:11
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultDocuments

Default Documents String Array

Type:String[]
Position:4
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DetailedErrorLoggingEnabled

Detailed Error Logging Enabled Boolean

Type:Boolean
Position:9
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-HandlerMappings

Handler Mappings IList

Type:IList<T>[HandlerMapping]
Position:12
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-HttpLoggingEnabled

HttpLoggingEnabled Boolean

Type:Boolean
Position:8
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ManagedPipelineMode

Managed Pipeline Mode Name

Type:String
Accepted values:Classic, Integrated
Position:13
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

WebApp Name

Type:String
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-NetFrameworkVersion

Net Framework Version

Type:String
Position:5
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NumberOfWorkers

The number of workers to be allocated

Type:Int32
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-PhpVersion

Php Version

Type:String
Position:6
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RequestTracingEnabled

Request Tracing Enabled Boolean

Type:Boolean
Position:7
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceGroupName

Resource Group Name

Type:String
Position:0
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
-Use32BitWorkerProcess

Use 32-bit Worker Process Boolean

Type:Boolean
Position:15
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WebApp

WebApp Object

Type:Site
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-WebSocketsEnabled

Web Sockets Enabled Boolean

Type:Boolean
Position:14
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Int32

Parameter 'NumberOfWorkers' accepts value of type 'Int32' from the pipeline

Site

Parameter 'WebApp' accepts value of type 'Site' from the pipeline