From d82dfc0b38a4c83cad6d557f2b193d0c541bdeef Mon Sep 17 00:00:00 2001 From: "Alexander (Sasha) Nosov" Date: Wed, 5 Jul 2023 16:25:35 -0700 Subject: [PATCH] Fixed optionality --- .../modify-license-type/modify-license-type.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/manage/azure-arc-enabled-sql-server/modify-license-type/modify-license-type.ps1 b/samples/manage/azure-arc-enabled-sql-server/modify-license-type/modify-license-type.ps1 index 9ea42929..bd583e74 100644 --- a/samples/manage/azure-arc-enabled-sql-server/modify-license-type/modify-license-type.ps1 +++ b/samples/manage/azure-arc-enabled-sql-server/modify-license-type/modify-license-type.ps1 @@ -14,7 +14,7 @@ # -LicenseType [license_type_value] (Optional. Sets the license type to the specified value) # -EnabelESU [Yes or No] (Optional. Enables the ESU policy the value is "Yes" or disables it if the value is "No" # To enable, the license type must be "Paid" or "PAYG" -# -Force [$true or $false] (Optional. Forces the chnahge of the license type to the specified value on all installed extensions. +# -Force (Optional. Forces the chnahge of the license type to the specified value on all installed extensions. # If Force is not specified, the -LicenseType value is set only if undefined. Ignored if -LicenseType is not specified # # This script uses a function ConvertTo-HashTable that was created by Adam Bertram (@adam-bertram). @@ -35,7 +35,7 @@ param ( [Parameter (Mandatory= $false)] [ValidateSet("Yes","No", IgnoreCase=$false)] [string] $EnableESU, - [Parameter (Mandatory= $true)] + [Parameter (Mandatory= $false)] [switch] $Force )