azure-policy
azure-policy copied to clipboard
Configure Windows Machines to be associated with a Data Collection Rule or a Data Collection Endpoint: Missing Image Offer
ISSUE DESCRIPTION: Trying to configure AMA using built-in-policies as recommended on official documentation. But VM's image offer not included on built-in-policy.
Policy Affected: https://raw.githubusercontent.com/Azure/azure-policy/70604927187568437f106d66ca47331e88e5aac7/built-in-policies/policyDefinitions/Monitoring/AzureMonitor_DCRA_Windows_Deploy.json
Policy:
'allOf': [
{
'field': 'Microsoft.Compute/imagePublisher',
'equals': 'MicrosoftSQLServer'
},
{
'anyOf': [
{
'field': 'Microsoft.Compute/imageOffer',
'like': '*-WS2016'
},
{
'field': 'Microsoft.Compute/imageOffer',
'like': '*-WS2016-BYOL'
},
{
'field': 'Microsoft.Compute/imageOffer',
'like': '*-WS2012R2'
},
{
'field': 'Microsoft.Compute/imageOffer',
'like': '*-WS2012R2-BYOL'
}
VM Affected:
Image publisher : microsoftsqlserver
Image offer : sql2022-ws2022
Image plan : standard-gen2
Any updates on this one??? Open Microsoft case on azure and opened this issue here... but no update on both ways... quite disappointing...