Skip to content

Commit cc88456

Browse files
authored
Merge pull request #895 from anosov1960/master
Formatting
2 parents 8c21d3b + 229fcd5 commit cc88456

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

samples/manage/azure-hybrid-benefit/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.date: 2/2/2021
88

99
# Overview
1010

11-
This script provides a simple solution to analyze and track the consolidated utilization of SQL Server licenses by all of the SQL resources in a specific subscription or the entire the account. By default, the script scans all subscriptions the user account has access. Alternatively, you can specify a single subscription or a .CSV file with a list of subscription. The usage report includes the following information for each scanned subscription.
11+
This script provides a simple solution to analyze and track the consolidated utilization of SQL Server licenses by all of the SQL resources in a specific subscription or the entire account. By default, the script scans all subscriptions the user account has access to. Alternatively, you can specify a single subscription or a .CSV file with a list of subscription. The usage report includes the following information for each scanned subscription.
1212

1313
| **Category** | **Description** |
1414
|:--|:--|
@@ -107,13 +107,13 @@ Use the following steps to calculate the SQL Server license usage:
107107
2. Upload the script to the shell using the following command:
108108

109109
```console
110-
curl https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/manage/azure-hybrid-benefit/sql-license-usage.ps1 -o sql-license-usage.ps1
110+
curl https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/manage/azure-hybrid-benefit/sql-license-usage.ps1 -o sql-license-usage.ps1
111111
```
112112

113113
3. Run the script with a set of parameters that reflect your desired configuration.
114114

115115
```console
116-
./sql-license-usage.ps1 <parameters>
116+
./sql-license-usage.ps1 <parameters>
117117
```
118118

119119
> [!NOTE]
@@ -129,7 +129,7 @@ You can track your license utilization over time by running this script on sched
129129
curl https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/manage/azure-hybrid-benefit/sql-license-usage.ps1 -o sql-license-usage.ps1
130130
```
131131
2. [Create a new automation account](https://ms.portal.azure.com/#create/Microsoft.AutomationAccount) or use an existing one.
132-
1. Select *Rus as accounts* in the **Account Settings** group, open the automatically created Azure *Run As Account* and note or copy the Display Name property. You must add this user to all the subscriptions you wish to scan with the *Reader* access role. See [Role assignment portal](https://docs.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal) for the instructions about role assignments.
132+
1. Select *Rus as accounts* in the **Account Settings** group, open the automatically created *Azure Run As Account* and note or copy the Display Name property. You must add this user to all the subscriptions you wish to scan with the *Reader* access role. See [Role assignment portal](https://docs.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal) for the instructions about role assignments.
133133
1. Select *Credentials* in the **Shared resources** group and create a credential object with the database username and password. The script will use these to connect to the specified database to save the license utilization data.
134134
1. Select *Modules* in the **Shared resources** group and make sure your automation account have the following PowerShell modules installed. If not, add them from the Gallery.
135135
- Az.Accounts
@@ -142,7 +142,7 @@ curl https://raw.githubusercontent.com/microsoft/sql-server-samples/master/sampl
142142
1. When import is completed click on *Publish*.
143143
1. From the runbook blade, click on the *Link to schedule* button and select an existing schedule or create a new one with the desired frequency of runs and the expiration time.
144144
1. Click on *Parameters and run settings* and specify the following parameters:
145-
- SUBID. Put in a subscription ID or leave it blank if you want to scan all the subscriptions the *Run As Account* has been given access to in Step 3.
145+
- SUBID. Put in a subscription ID or leave it blank if you want to scan all the subscriptions the *Azure Run As Account* has been given access to in Step 3.
146146
- SERVER. Put in the SQL Server connection endpoint (e.g. my-westus2-sql-server.database.windows.net)
147147
- CRED. Put in the name of the credential object you created in Step 3.
148148
- DATABASE. Put in the database name where you want to save the license utilization data.
@@ -152,4 +152,4 @@ curl https://raw.githubusercontent.com/microsoft/sql-server-samples/master/sampl
152152
For more information about the runbooks, see the [Runbook tutorial](https://docs.microsoft.com/en-us/azure/automation/learn/automation-tutorial-runbook-textual-powershell)
153153

154154
>[!IMPORTANT]
155-
> When running the script as a runbook, it is necessary to use a database to ensure that the results can be analyzed outside of the runbook.
155+
> When running the script as a runbook, it is necessary to save the data in a database so that the results could be analyzed outside of the runbook.

0 commit comments

Comments
 (0)