Created
November 28, 2022 16:54
-
-
Save andrewmatveychuk/7b0b3f3b922b1724985371d6330a0d5d to your computer and use it in GitHub Desktop.
Sample Azure Policy rule to evaluate SQL Server VMs for Azure Hybrid Benefit usage
This file contains 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
"if": { | |
"allOf": [ | |
{ | |
"field": "type", | |
"equals": "Microsoft.SqlVirtualMachine/SqlVirtualMachines" | |
}, | |
{ | |
"field": "Microsoft.SqlVirtualMachine/SqlVirtualMachines/sqlImageSku", | |
"in": [ | |
"Standard", | |
"Enterprise" | |
] | |
}, | |
{ | |
"field": "Microsoft.SqlVirtualMachine/SqlVirtualMachines/sqlServerLicenseType", | |
"notEquals": "AHUB" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment