From a4759802cb10c1faed760a60845bd5e3b73e4988 Mon Sep 17 00:00:00 2001 From: "Alexander (Sasha) Nosov" Date: Tue, 14 Feb 2023 09:03:00 -0800 Subject: [PATCH] Tweaked the parameters descriptions --- .../modify-license-type/README.md | 4 ++-- .../modify-license-type/modify-license-type.ps1 | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/samples/manage/azure-arc-enabled-sql-server/modify-license-type/README.md b/samples/manage/azure-arc-enabled-sql-server/modify-license-type/README.md index 0825df3a..7b34747e 100644 --- a/samples/manage/azure-arc-enabled-sql-server/modify-license-type/README.md +++ b/samples/manage/azure-arc-enabled-sql-server/modify-license-type/README.md @@ -29,11 +29,11 @@ The script accepts the following command line parameters: | **Parameter**                                         | **Value**                                                                       | **Description** | |:--|:--|:--| -|-SubId|subscription_id *or* a file_name|Optional: subscription id or a .csv file with the list of subscriptions1| +|-SubId|subscription_id *or* a file_name|Optional: subscription id or a .csv file with the list of subscriptions1. If not specified all subscriptions will be scanned| |-ResourceGroup |resource_group_name|Optional: Limit the scope to a specific resource group| |-MachineName |machine_name|Optional: Limit the scope to a specific machine| |-LicenceType | "Paid" (default), "PAYG" or "LicenseOnly"| Specifies the license type value | -|-All|\$True or \$False (default)|Optional: Set the new license type value only if undefined| +|-All|\$True or \$False (default)|Optional. Set the new license type for all installed extensions. By default the value is set only if license type is undefined.| 1You can create a .csv file using the following command and then edit to remove the subscriptions you don't want to scan. ```PowerShell 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 d594c699..9539c4e1 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 @@ -8,11 +8,13 @@ # # The script accepts the following command line parameters: # -# -SubId [subscription_id] | [csv_file_name] (Limit scope to specific subscriptions. Accepts a .csv file with the list of subscriptions) +# -SubId [subscription_id] | [csv_file_name] (Limit scope to specific subscriptions. Accepts a .csv file with the list of subscriptions. +# If not specified all subscriptions will be scanned) # -ResourceGroup [resource_goup] (Limit scope to a specific resoure group) # -MachineName [machine_name] (Limit scope to a specific machine) # -LicenseType [license_type_value] (Specific LT value) -# -All (Optional. Set the new license type value only if undefined) +# -All (Optional. Set the new license type on all installed extensions. +# By default the value is set only if license type is undefined undefined) # # The script uses a function ConvertTo-HashTable that was created by Adam Bertram (@adam-bertram). # The function was originally published on this site: https://4sysops.com/archives/convert-json-to-a-powershell-hash-table/