Created
November 11, 2024 12:38
-
-
Save andrewmatveychuk/8f95d0064ab33434c0f717cb0846b225 to your computer and use it in GitHub Desktop.
Azure Web App access restrictions to a specific Azure Front Door instance
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
resource siteConfig 'Microsoft.Web/sites/config@2023-12-01' = { | |
parent: existingWebApp | |
name: 'web' | |
properties: { | |
ipSecurityRestrictions: [ | |
{ | |
ipAddress: 'AzureFrontDoor.Backend' | |
action: 'Allow' | |
tag: 'ServiceTag' | |
priority: 100 | |
name: 'Allow traffic from Front Door' | |
headers: { | |
'x-azure-fdid': [ | |
frontDoorProfile.properties.frontDoorId //Scoping access to a unique Front Door instance | |
] | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment