Azure / azure-policy

Repository for Azure Resource Policy built-in definitions and samples
MIT License
1.49k stars 1.08k forks source link

Configure Windows Machines to be associated with a Data Collection Rule or a Data Collection Endpoint: Missing Image Offer #1284

Open vdias opened 6 months ago

vdias commented 6 months ago

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
vdias commented 6 months ago

Any updates on this one??? Open Microsoft case on azure and opened this issue here... but no update on both ways... quite disappointing...