Skip to content

Instantly share code, notes, and snippets.

@andrewmatveychuk
Created November 11, 2024 12:38
Show Gist options
  • Save andrewmatveychuk/8f95d0064ab33434c0f717cb0846b225 to your computer and use it in GitHub Desktop.
Save andrewmatveychuk/8f95d0064ab33434c0f717cb0846b225 to your computer and use it in GitHub Desktop.
Azure Web App access restrictions to a specific Azure Front Door instance
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