< Back

Set-AzureRmWebApp

Tue Jan 29, 2019 10:12 pm

NAME Set-AzureRmWebApp



SYNOPSIS

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] {Classic | Integrated}]

[[-WebSocketsEnabled] <Boolean>] [[-Use32BitWorkerProcess] <Boolean>] [[-AutoSwapSlotName] <String>] [[-AppServicePlan] <String>]

[[-DefaultDocuments] <String[]>] [[-NetFrameworkVersion] <String>] [[-PhpVersion] <String>] [[-RequestTracingEnabled] <Boolean>]

[[-HttpLoggingEnabled] <Boolean>] [[-DetailedErrorLoggingEnabled] <Boolean>] [[-AppSettings] <Hashtable>] [-DefaultProfile

<IAzureContextContainer>] [-HostNames <String[]>] [-NumberOfWorkers <Int32>] [-AsJob] [<CommonParameters>]



Set-AzureRmWebApp [-WebApp] <Site> [[-Use32BitWorkerProcess] <Boolean>] [[-AutoSwapSlotName] <String>] [-DefaultProfile <IAzureContextContainer>]

[-NumberOfWorkers <Int32>] [-AsJob] [<CommonParameters>]





DESCRIPTION

The Set-AzureRmWebApp cmdlet sets an Azure Web App.





PARAMETERS

-AppServicePlan <String>

App Service Plan Name



Required? false

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-AppSettings <Hashtable>

App Settings HashTable



Required? false

Position? 9

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-AutoSwapSlotName <String>

Destination slot name for auto swap



Required? false

Position? 15

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ConnectionStrings <Hashtable>

Connection Strings HashTable



Required? false

Position? 10

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DefaultDocuments <String[]>

Default Documents String Array



Required? false

Position? 3

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DetailedErrorLoggingEnabled <Boolean>

Detailed Error Logging Enabled Boolean



Required? false

Position? 8

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-HandlerMappings <System.Collections.Generic.IList`1[Microsoft.Azure.Management.WebSites.Models.HandlerMapping]>

Handler Mappings IList



Required? false

Position? 11

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-HostNames <String[]>

WebApp HostNames String Array



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-HttpLoggingEnabled <Boolean>

HttpLoggingEnabled Boolean



Required? false

Position? 7

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ManagedPipelineMode <String>

Managed Pipeline Mode Name



Required? false

Position? 12

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

WebApp Name



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-NetFrameworkVersion <String>

Net Framework Version



Required? false

Position? 4

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-NumberOfWorkers <Int32>

The number of workers to be allocated



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-PhpVersion <String>

Php Version



Required? false

Position? 5

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RequestTracingEnabled <Boolean>

Request Tracing Enabled



Required? false

Position? 6

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

Resource Group Name



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Use32BitWorkerProcess <Boolean>

Use 32-bit Worker Process Boolean



Required? false

Position? 14

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WebApp <Site>

WebApp Object



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-WebSocketsEnabled <Boolean>

WebSocketsEnabled Boolean



Required? false

Position? 13

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-AsJob [<SwitchParameter>]

Run cmdlet in the background



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Int32

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



Site

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





OUTPUTS



NOTES









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







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... rermwebapp

Get-AzureRmWebApp

New-AzureRmWebAppBackup

Remove-AzureRmWebApp

Restart-AzureRmWebApp

Restart-AzureRmWebApp

Stop-AzureRmWebApp