Set-​Azure​Rm​Web​App

Modifies an Azure Web App.

Syntax

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

Description

The Set-AzureRmWebApp cmdlet sets an Azure Web App.

Examples

Example 1

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

This command sets HttpLoggingEnabled to true for 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
-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:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AppSettings

App Settings HashTable

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

Destination slot name for auto swap

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

Connection Strings HashTable

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

Default Documents String Array

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

Detailed Error Logging Enabled Boolean

Type:Boolean
Position:8
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:11
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-HostNames

WebApp HostNames String Array

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

HttpLoggingEnabled Boolean

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

Managed Pipeline Mode Name

Type:String
Parameter Sets:Classic, Integrated
Position:12
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NetFrameworkVersion

Net Framework Version

Type:String
Position:4
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:5
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RequestTracingEnabled

Request Tracing Enabled

Type:Boolean
Position:6
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Use32BitWorkerProcess

Use 32-bit Worker Process Boolean

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

WebSocketsEnabled Boolean

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