Skip to content

Commit 9842f2a

Browse files
[App Service] Set-AzWebAppSlot defaults AlwaysOn to false [#15066] (#15077)
1 parent 1338a9c commit 9842f2a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Websites/Websites/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* Fixed `Set-AzWebApp` to set the AppSettings
2424
* updated `Set-AzWebAppSlot` to set FtpsState
2525
* Added support for StaticSites.
26+
* fixed issue that defaults AlwaysOn to false in `Set-AzWebAppSlot`
2627

2728
## Version 2.5.0
2829
* Updated `Add-AzWebAppAccessRestrictionRule` to allow all supported Service Tags and validate against Service Tag API.

src/Websites/Websites/Cmdlets/DeploymentSlots/SetAzureWebAppSlot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public override void ExecuteCmdlet()
181181
parameters.Contains("Use32BitWorkerProcess") ? (bool?)Use32BitWorkerProcess : null,
182182
AutoSwapSlotName = parameters.Contains("AutoSwapSlotName") ? AutoSwapSlotName : null,
183183
NumberOfWorkers = parameters.Contains("NumberOfWorkers") ? NumberOfWorkers : WebApp.SiteConfig.NumberOfWorkers,
184-
AlwaysOn = parameters.Contains("AlwaysOn") ? (bool)AlwaysOn : false,
184+
AlwaysOn = parameters.Contains("AlwaysOn") ? (bool?)AlwaysOn : null,
185185
FtpsState = parameters.Contains("FtpsState") ? FtpsState : WebApp.SiteConfig.FtpsState
186186
};
187187
}

0 commit comments

Comments
 (0)