Skip to content

Commit e935c4e

Browse files
Updates the license type for Azure SQL resources (SQL DBs, Elastic Pools, Managed Instances, Instance Pools, SQL VMs)
to a specified model ("LicenseIncluded" or "BasePrice"). Optionally starts resources if needed.
1 parent a00fde4 commit e935c4e

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

samples/manage/azure-hybrid-benefit/modify-license-type/modify-license-type.ps1

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,25 @@
44
to a specified model ("LicenseIncluded" or "BasePrice"). Optionally starts resources if needed.
55
66
.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.
1126
1227
.PARAMETER SubId
1328
A single subscription ID or a CSV file name containing a list of subscriptions.

0 commit comments

Comments
 (0)