Skip to content

Commit 1d31820

Browse files
authored
Merge pull request #1108 from anosov1960/master
Added another example
2 parents 0229a7d + d0116bc commit 1d31820

File tree

1 file changed

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

1 file changed

+13
-4
lines changed

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)