Francois
Francois

Reputation: 10978

Setup headers for web app's IP security restriction with Bicep

How to define headers for IP security restrictions of an Azure Web App, with Bicep?

Documentation says little about this, only that headers is an object.

ipSecurityRestrictions: [
        {
          priority: 1000
          name: 'AFD'
          tag: 'ServiceTag'
          action: 'Allow'
          ipAddress: 'AzureFrontDoor.Backend'    
          headers: {
            x_azure_fdid : [
              '3dc8865d-90c7-4b87-8edf-99726c56543a'
            ]
          }    
        }
]

Error is: The 'x_azure_fdid' header is not supported!

I tried with x_azure_fdid, xazurefdid or even 'x_azure_fdid', uppercase, etc... to no avail.

Upvotes: 0

Views: 399

Answers (1)

Thomas
Thomas

Reputation: 29572

Looking at Front Door documentation, the header name is X-Azure-FDID

headers: {
  'x-azure-fdid': [
    '3dc8865d-90c7-4b87-8edf-99726c56543a'
  ]
}

Upvotes: 1

Related Questions