Azure / arm-ttk

Azure Resource Manager Template Toolkit
https://aka.ms/arm-ttk
MIT License
441 stars 188 forks source link

Failing to validate Azure Front Door ARM property #737

Closed danielmacedo90 closed 9 months ago

danielmacedo90 commented 1 year ago

Description

The arm-ttk is failing to handle patternsToMatch property referring the Azure Front Door.

Output / Error

image

ARM Template Definition

"routingRules": [
          {
            "name": "routingRule1",
            "properties": {
              "frontendEndpoints": [
                {
                  "id": "[resourceId('Microsoft.Network/frontDoors/frontendEndpoints', variables('frontDoorName'), 'frontendEndpoint1')]"
                }
              ],
              "acceptedProtocols": [
                "Https"
              ],
              "patternsToMatch": [
                "/*"
              ],
              "routeConfiguration": {
                "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration",
                "forwardingProtocol": "HttpsOnly",
                "backendPool": {
                  "id": "[resourceId('Microsoft.Network/frontDoors/backendPools', variables('frontDoorName'), 'backendPool1')]"
                }
              },

              "enabledState": "Enabled"
            }
          },
]
vidapour commented 1 year ago

@danielmacedo90 can you provide your full template so that we can test your scenario? Thanks :)

danielmacedo90 commented 1 year ago

@vidapour here is the full template.

azuredeploy.zip