Set-​Azure​Rm​Web​App​Slot

Modifies an Azure Web App slot.

Syntax

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

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

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
-Slot

WebApp Slot Name

Type:String
Position:2
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 (ByValue)
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
-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
-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:System.Collections.Generic.IList`1[Microsoft.Azure.Management.WebSites.Models.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
Position:13
Default value:None
Accept pipeline input:False
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 (ByValue)
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
-Use32BitWorkerProcess

Use 32-bit Worker Process Boolean

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

Web Sockets Enabled Boolean

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