Skip to content

Commit 06b6565

Browse files
Fixes: #17663: Set-AzWebAppSlot command with -MinTlsVersion is not setting TLS version for WebApp Slots (#17664)
* Fix #17184 : `Get-AzWebApp` to return SiteConfig details in the response when requested the WebApps under subscreption * Revert "Fix #17184 : `Get-AzWebApp` to return SiteConfig details in the response when requested the WebApps under subscreption" This reverts commit 96a4d28. * Fix #17184 : `Get-AzWebApp` to return SiteConfig details in the response when requested the WebApps under subscreption * Revert "Fix #17184 : `Get-AzWebApp` to return SiteConfig details in the response when requested the WebApps under subscreption" This reverts commit 96a4d28. * Fix:#17663 : Enable MinTlsVersion
1 parent 767d616 commit 06b6565

File tree

4 files changed

+1682
-1452
lines changed

4 files changed

+1682
-1452
lines changed

src/Websites/Websites.Test/ScenarioTests/WebAppSlotTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ function Test-SetWebAppSlot
483483
# Assert
484484
Assert-NotNull $slot.Identity
485485
Assert-AreEqual ($appSettings.Keys.Count) $slot.SiteConfig.AppSettings.Count
486-
Assert-AreEqual "1.0" $slot.SiteConfig.MinTlsVersion
486+
Assert-AreEqual "1.2" $slot.SiteConfig.MinTlsVersion
487487

488488
$slot = Set-AzWebAppSlot -ResourceGroupName $rgname -Name $appname -Slot $slotname -AppSettings $appSettings -ConnectionStrings $connectionStrings -numberofworkers $numberOfWorkers
489489

src/Websites/Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.WebAppSlotTests/TestSetWebAppSlot.json

Lines changed: 1678 additions & 1450 deletions
Large diffs are not rendered by default.

src/Websites/Websites/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fixed `Set-AzWebAppSlot` to support MinTlsVersion version update [#17663]
2122
* Fixed `Set-AzAppServicePlan` to keep existing Tags when adding new Tags
2223
* Fixed `Set-AzWebApp`,`Set-AzWebAppSlot`, `Get-AzWebApp` and `Get-AzWebAppSlot` to expose `VnetRouteAllEnabled` property in `SiteConfig` [#15663]
2324
* Fixed `Set-AzWebApp`, `Set-AzWebAppSlot`, `Get-AzWebApp` and `Get-AzWebAppSlot` to expose `HealthCheckPath` property in `SiteConfig` [#16325]

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ public override void ExecuteCmdlet()
182182
AutoSwapSlotName = parameters.Contains("AutoSwapSlotName") ? AutoSwapSlotName : null,
183183
NumberOfWorkers = parameters.Contains("NumberOfWorkers") ? NumberOfWorkers : WebApp.SiteConfig.NumberOfWorkers,
184184
AlwaysOn = parameters.Contains("AlwaysOn") ? (bool?)AlwaysOn : null,
185-
FtpsState = parameters.Contains("FtpsState") ? FtpsState : WebApp.SiteConfig.FtpsState
185+
FtpsState = parameters.Contains("FtpsState") ? FtpsState : WebApp.SiteConfig.FtpsState,
186+
MinTlsVersion = parameters.Contains("MinTlsVersion") ? MinTlsVersion : WebApp.SiteConfig.MinTlsVersion
186187
};
187188
}
188189

0 commit comments

Comments
 (0)