< Back

Set-AzureRmWebAppSlot

Tue Jan 29, 2019 10:12 pm

NAME Set-AzureRmWebAppSlot



SYNOPSIS

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]

{Classic | Integrated}] [[-WebSocketsEnabled] <Boolean>] [[-Use32BitWorkerProcess] <Boolean>] [-Slot] <String> [[-AppServicePlan] <String>]

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

[[-HttpLoggingEnabled] <Boolean>] [[-DetailedErrorLoggingEnabled] <Boolean>] [-AutoSwapSlotName <String>] [-DefaultProfile

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



Set-AzureRmWebAppSlot [-WebApp] <Site> [[-AppSettings] <Hashtable>] [[-ConnectionStrings] <Hashtable>] [[-HandlerMappings]

<System.Collections.Generic.IList`1[Microsoft.Azure.Management.WebSites.Models.HandlerMapping]>] [[-ManagedPipelineMode] {Classic | Integrated}]

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

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

[[-DetailedErrorLoggingEnabled] <Boolean>] [-AutoSwapSlotName <String>] [-DefaultProfile <IAzureContextContainer>] [-NumberOfWorkers <Int32>]

[-AsJob] [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-AppServicePlan <String>

App Service Plan Name



Required? false

Position? 3

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-AppSettings <Hashtable>

App Settings HashTable



Required? false

Position? 10

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-AutoSwapSlotName <String>

Destination slot name for auto swap



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ConnectionStrings <Hashtable>

Connection Strings HashTable



Required? false

Position? 11

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DefaultDocuments <String[]>

Default Documents String Array



Required? false

Position? 4

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? 9

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? 12

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-HttpLoggingEnabled <Boolean>

HttpLoggingEnabled Boolean



Required? false

Position? 8

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ManagedPipelineMode <String>

Managed Pipeline Mode Name



Required? false

Position? 13

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? 5

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? 6

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RequestTracingEnabled <Boolean>

Request Tracing Enabled Boolean



Required? false

Position? 7

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



-Slot <String>

WebApp Slot Name



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Use32BitWorkerProcess <Boolean>

Use 32-bit Worker Process Boolean



Required? false

Position? 15

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>

Web Sockets Enabled Boolean



Required? false

Position? 14

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







RELATED LINKS

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

Get-AzureRmWebAppSlot

New-AzureRmWebAppSlot

Remove-AzureRmWebAppSlot

Restart-AzureRmWebAppSlot

Restart-AzureRmWebAppSlot

Stop-AzureRmWebAppSlot

Get-AzureRmAppServicePlan