You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/manage/azure-hybrid-benefit/modify-license-type/modify-license-type.ps1
+19-4Lines changed: 19 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,25 @@
4
4
to a specified model ("LicenseIncluded" or "BasePrice"). Optionally starts resources if needed.
5
5
6
6
.DESCRIPTION
7
-
In a quest to bring harmony to the Azure realms, our script journeys across subscriptions,
8
-
updating the license types of various SQL resources. It supports processing a single subscription,
9
-
a CSV list of subscriptions, or all accessible subscriptions. For SQL VMs and SQL Managed Instances,
10
-
it can even start the resource if it's stopped (when -Force_Start_On_Resources is enabled).
7
+
The script updates Azure SQL License types across subscriptions by modifying the license settings for a variety of SQL resources. It supports processing resources in one of the following ways:
8
+
9
+
Single Subscription:
10
+
Run against a specified subscription ID.
11
+
CSV List of Subscriptions:
12
+
Process multiple subscriptions provided in a CSV file.
13
+
All Accessible Subscriptions:
14
+
Automatically detect and update all subscriptions that you have access to.
15
+
For specific resource types like SQL Virtual Machines and SQL Managed Instances, the script can optionally start the resource if it is in a stopped state (when the -Force_Start_On_Resources parameter is enabled) before applying the license update.
16
+
17
+
The script processes several types of Azure SQL resources including:
18
+
19
+
SQL Virtual Machines (SQL VMs)
20
+
SQL Managed Instances
21
+
SQL Databases
22
+
Elastic Pools
23
+
SQL Instance Pools
24
+
DataFactory SSIS Integration Runtimes
25
+
This automation helps ensure that your licensing configuration is consistent across your environment without manual intervention.
11
26
12
27
.PARAMETERSubId
13
28
A single subscription ID or a CSV file name containing a list of subscriptions.
0 commit comments