diff --git a/samples/manage/azure-arc-enabled-sql-server/activate-pcore-license/README.md b/samples/manage/azure-arc-enabled-sql-server/activate-pcore-license/README.md index f20a6396..1ba9cf28 100644 --- a/samples/manage/azure-arc-enabled-sql-server/activate-pcore-license/README.md +++ b/samples/manage/azure-arc-enabled-sql-server/activate-pcore-license/README.md @@ -27,7 +27,7 @@ The script accepts the following command line parameters: | **Parameter**                                         | **Value**                                                                       | **Description** | |:--|:--|:--| -|-licenseId| License resource URI | +|-LicenseId| License resource URI | |-UseInRunbook| \$True or \$False (default) | Optional: must be $True when executed as a Runbook| @@ -36,7 +36,7 @@ The script accepts the following command line parameters: The following command activate the license ```PowerShell -.\activate-pcore-license.ps1 -licenseID +.\activate-pcore-license.ps1 -LicenseID ``` # Running the script using Cloud Shell @@ -48,13 +48,13 @@ To run the script in the Cloud Shell, use the following steps: 2. Upload the script to the shell using the following command: ```console - curl https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/manage/azure-hybrid-benefit/sql-license-usage.ps1 -o sql-license-usage.ps1 + curl https://raw.githubusercontent.com/anosov1960/sql-server-samples/master/samples/manage/azure-arc-enabled-sql-server/activate-pcore-license/activate-pcore-license.md -o activate-pcore-license.ps1 ``` 3. Run the script with a set of parameters that reflect your desired configuration. ```console - .\activate-pcore-license.ps1 -licenseID + .\activate-pcore-license.ps1 -licenseID ``` > [!NOTE] diff --git a/samples/manage/azure-arc-enabled-sql-server/activate-pcore-license/activate-pcore-license.md b/samples/manage/azure-arc-enabled-sql-server/activate-pcore-license/activate-pcore-license.md index 81d274ab..34ca0399 100644 --- a/samples/manage/azure-arc-enabled-sql-server/activate-pcore-license/activate-pcore-license.md +++ b/samples/manage/azure-arc-enabled-sql-server/activate-pcore-license/activate-pcore-license.md @@ -8,7 +8,7 @@ param ( [Parameter (Mandatory= $true)] - [string] $licenseId, + [string] $LicenseId, [Parameter (Mandatory= $false)] [string] $UseInRunbook = $true ) @@ -79,5 +79,5 @@ if ($UseInRunbook){ } $newActivationState = "Activated" -Set-AzResource -ResourceId $licenseId -PropertyObject @{"properties.activationState" = $newActivationState} -Force +Set-AzResource -ResourceId $LicenseId -PropertyObject @{"properties.activationState" = $newActivationState} -Force