mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Fixed URL
This commit is contained in:
@@ -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]
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user