Fixed URL

This commit is contained in:
Alexander (Sasha) Nosov
2024-06-12 18:00:04 -07:00
committed by GitHub
parent 6713bef69a
commit deccf74d92
2 changed files with 6 additions and 6 deletions
@@ -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 <rsource URI>
.\activate-pcore-license.ps1 -LicenseID <rsource URI>
```
# 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 <rsource URI>
.\activate-pcore-license.ps1 -licenseID <resource URI>
```
> [!NOTE]
@@ -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