Skip to content

Commit

Permalink
Fixed URL
Browse files Browse the repository at this point in the history
  • Loading branch information
anosov1960 committed Jun 13, 2024
1 parent 6713bef commit deccf74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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|


Expand All @@ -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
Expand All @@ -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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

param (
[Parameter (Mandatory= $true)]
[string] $licenseId,
[string] $LicenseId,
[Parameter (Mandatory= $false)]
[string] $UseInRunbook = $true
)
Expand Down Expand Up @@ -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

0 comments on commit deccf74

Please sign in to comment.