Created
November 28, 2022 16:50
-
-
Save andrewmatveychuk/80e2b2406bf963fad996f6c1704eb7d4 to your computer and use it in GitHub Desktop.
Sample Azure Policy effect to configure Azure Hybrid Benefit usage by Windows Server VMs
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
"then": { | |
"effect": "Modify", | |
"details": { | |
"roleDefinitionIds": [ | |
"/providers/Microsoft.Authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c" | |
], | |
"conflictEffect": "Audit", | |
"operations": [ | |
{ | |
"operation": "addOrReplace", | |
"field": "Microsoft.Compute/virtualMachines/licenseType", | |
"value": "Windows_Server" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment