Skip to content

Commit dd11280

Browse files
author
Alexander (Sasha) Nosov
committed
Added ESU examples
1 parent d82dfc0 commit dd11280

File tree

1 file changed

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

1 file changed

+19
-21
lines changed

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

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,28 @@ The following command will scan the subscription `<sub_id>` and set the license
5757

5858
## Example 3
5959

60-
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.
60+
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.
6161

6262
```PowerShell
6363
.\modify-license-type.ps1 -SubId <sub_id> -ResourceGroup <resource_group_name> -LicenseType PAYG -Force
6464
```
6565

66+
## Example 4
67+
68+
The following command will set License Type to 'Paid" and enables ESU on all servers in the subscriptions `<sub_id>` and the resource group `<resource_group_name>`.
69+
70+
```console
71+
.//modify-license-type.ps1 -SubId <sub_id> -ResourceGroup <resource_group_name> -LicenseType Paid -EnableESU Yes -Force
72+
```
73+
74+
## Example 5
75+
76+
The following command will disable ESU on all servers in the subscriptions `<sub_id>`.
77+
78+
```console
79+
.//modify-license-type.ps1 -SubId <sub_id> -EnableESU No
80+
```
81+
6682
# Running the script using Cloud Shell
6783

6884
This option is recommended because Cloud shell has the Azure PowerShell modules pre-installed and you are automatically authenticated. Use the following steps to run the script in Cloud Shell.
@@ -81,7 +97,7 @@ This option is recommended because Cloud shell has the Azure PowerShell modules
8197
curl https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/manage/azure-arc-enabled-sql-server/modify-license-type/modify-license-type.ps1 -o modify-license-type.ps1
8298
```
8399

84-
1. Run the script.
100+
1. Run the script.
85101

86102
> [!NOTE]
87103
> - To paste the commands into the shell, use `Ctrl-Shift-V` on Windows or `Cmd-v` on MacOS.
@@ -118,22 +134,4 @@ Use the following steps to run the script in a PowerShell session on your PC.
118134
Connect-AzAccount -TenantID (Get-AzureADTenantDetail).ObjectId
119135
```
120136

121-
1. Run the script using the desired scope.
122-
123-
# Examples
124-
125-
1. The following command will set License Type to 'Paid" on all servers in all the subscriptions your role has access to.
126-
127-
```console
128-
.//modify-license-type.ps1 -LicenseType Paid -EnableESU Yes -Force $true
129-
```
130-
1. The following command will set License Type to 'Paid" and enables ESU on all servers in the subscriptions <your_sub_id> and the resource group <your_rg> role has access to.
131-
132-
```console
133-
.//modify-license-type.ps1 -SubId <your_sub_id> -ResourceGroup <your_rg> -LicenseType Paid -EnableESU Yes -Force $true
134-
```
135-
1. The following command will disable ESU on all servers in the subscriptions <your_sub_id> and the resource group <your_rg> role has access to.
136-
137-
```console
138-
.//modify-license-type.ps1 -SubId <your_sub_id> -ResourceGroup <your_rg> -EnableESU No -Force $true
139-
```
137+
1. Run the script.

0 commit comments

Comments
 (0)