Script to modify SQL VM ESU and license type#1487
Open
qingquanxu wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add script to modify Azure SQL VM license type and ESU policy
Summary
Adds a new PowerShell sample that sets or changes the SQL Server license type (
PAYG,AHUB,DR) and/or enables/disables the ESU policy at scale across Azure SQL VMs (Microsoft.SqlVirtualMachine/sqlVirtualMachines). It is the Azure SQL VM counterpart of the existingmodify-arc-sql-license-type.ps1sample for Arc-enabled SQL Servers, reusing the same parameter conventions and reporting shape.What's included
samples/manage/azure-sql-vm/modify-license-type/modify-azure-sql-vm-license-type.ps1samples/manage/azure-sql-vm/modify-license-type/README.mdKey features
-ReportOnlymode for safe previews (CSV report + transcript, no writes).Microsoft.AzureArcDataRP registration, SQL Management mode = Full); informational only and never blocks updates.-FixManagedIdentity,-FixArcDataRp,-FixManagementMode.-Force,-ExclusionTags,-TenantId,-UseManagedIdentity,-BatchSize.Requirements
Az.Accounts,Az.SqlVirtualMachine,Az.Compute,Az.ResourceGraphSQL Virtual Machine Contributor+Virtual Machine Contributor(orContributor) on targeted resourcesTesting
-ReportOnlyacross multiple subscriptions; confirmed prerequisite detection and CSV deep-links.Notes