azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Update ValidateSet for Set-AzWebApp and other WebApp commands to include TLS 1.3

Open avenski-ecovadis opened this issue 8 months ago • 3 comments

Description

Currently you can only provide values 1.0-1.2. Please add a new value to a validateset: 1.3

Issue script & Debug output

Set-AzWebApp: Cannot validate argument on parameter 'MinTlsVersion'. The argument "1.3" does not belong to the set "1.0,1.1,1.2" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again.

Environment data

Name                           Value
----                           -----
PSVersion                      7.5.1
PSEdition                      Core
GitCommitId                    7.5.1
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     14.0.0                Az                                  Core,Desk

Error output


avenski-ecovadis avatar May 29 '25 11:05 avenski-ecovadis

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI.

Better to use argument completer instead of validation set for future proof

isra-fel avatar Jun 05 '25 02:06 isra-fel

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI.