Skip to content

Commit 7ebeec4

Browse files
author
Alexander (Sasha) Nosov
committed
Added another example
1 parent fe49a46 commit 7ebeec4

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

  • samples/manage/azure-arc-enabled-sql-server/modify-license-type

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

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,29 @@ The script accepts the following command line parameters:
3939
```PowerShell
4040
Get-AzSubscription | Export-Csv .\mysubscriptions.csv -NoTypeInformation
4141
```
42+
4243
## Example 1
4344

44-
The following command will scan all the subscriptions to which the user has access to, and set the license type to "PAYG".
45+
The following command will scan all the subscriptions to which the user has access to, and set the license type to "Paid" on all servers where license type is undefined.
4546

4647
```PowerShell
47-
.\update-license-type.ps1 -LicenseType PAYG -All $True
48+
.\update-license-type.ps1 -LicenseType Paid
4849
```
4950

5051
## Example 2
5152

52-
The following command will scan the subscription `<sub_id>` and set the license type value to "Paid" on the servers where it is undefined.
53+
The following command will scan the subscription `<sub_id>` and set the license type value to "Paid" on all servers.
54+
55+
```PowerShell
56+
.\update-license-type.ps1 -SubId <sub_id> -LicenseType Paid -All $True
57+
```
58+
59+
## Example 3
60+
61+
The following command will scan resource group <resource_group_name> in the subscription `<sub_id>` and set the license type value to "PAYG" on all servers.
5362

5463
```PowerShell
55-
.\update-license-type.ps1 -SubId <sub_id> -LicenseType Paid
64+
.\update-license-type.ps1 -SubId <sub_id> -ResourceGroup <resource_group_name> -LicenseType PAYG -All $True
5665
```
5766

5867
# Running the script using Cloud Shell

0 commit comments

Comments
 (0)