Skip to content

Commit 608e27c

Browse files
authored
Merge pull request #1102 from anosov1960/master
Fixed examples
2 parents f91fdb8 + d7b4ab7 commit 608e27c

File tree

1 file changed

+5
-5
lines changed
  • samples/manage/azure-arc-enabled-sql-server/modify-license-type

1 file changed

+5
-5
lines changed

samples/manage/azure-arc-enabled-sql-server/modify-license-type/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.date: 2/09/2023
1111

1212

1313
This script allows you to to set or change the license type on all Azure-connected SQL Servers
14-
on a specific resource, in a single resource group, a specific subscription, a list of subscriptions or the entire account. By default, it sets the specified license type value on the servers where it is undefined. But you can request to set it on all servers in the selected scope.
14+
on a specific resource, in a single resource group, a specific subscription, a list of subscriptions or all subscriptions to which you have access. By default, it sets the specified license type value on the servers where it is undefined. But you can request to set it on all servers in the selected scope.
1515

1616
You can specify a single subscription to scan, or provide a list of subscriptions as a .CSV file.
1717
If not specified, all subscriptions your role has access to are scanned.
@@ -41,18 +41,18 @@ Get-AzSubscription | Export-Csv .\mysubscriptions.csv -NoTypeInformation
4141
```
4242
## Example 1
4343

44-
The following command will scan all the subscriptions to which the user has access to and set the license type to "PAYG".
44+
The following command will scan all the subscriptions to which the user has access to, and set the license type to "PAYG".
4545

4646
```PowerShell
47-
.\update-license-type.ps1 -LicenseType "PAYG" -All
47+
.\update-license-type.ps1 -LicenseType PAYG -All $True
4848
```
4949

5050
## Example 2
5151

5252
The following command will scan the subscription `<sub_id>` and set the license type value to "Paid" on the servers where it is undefined.
5353

5454
```PowerShell
55-
.\update-license-type.ps1 -SubId <sub_id> -LicenseType "Paid"
55+
.\update-license-type.ps1 -SubId <sub_id> -LicenseType Paid
5656
```
5757

5858
# Running the script using Cloud Shell
@@ -70,7 +70,7 @@ Use the following steps to run the script in Cloud Shell.
7070
3. Run the script.
7171

7272
```console
73-
.//modify-license-type.ps1 -LicenseType "PAYG"
73+
.//modify-license-type.ps1 -LicenseType Paid
7474
```
7575

7676
> [!NOTE]

0 commit comments

Comments
 (0)