Created
April 6, 2023 11:33
-
-
Save GrillPhil/1da9f2768ab64af0258eb999559d2f2a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
module apiEndpoint 'services/frontdoor-endpoint.bicep' = { | |
name: 'deploy-fd-${envName}-api-ep' | |
params: { | |
frontDoorName: frontDoor.outputs.name | |
name: 'ep-${envName}-api' | |
} | |
} | |
module apiDomain 'services/frontdoor-custom-domain.bicep' = { | |
name: 'deploy-fd-${envName}-api-domain' | |
params: { | |
frontDoorName: frontDoor.outputs.name | |
name: 'fd-api-${envName}' | |
hostName: apiHostName | |
} | |
} | |
module api 'services/function-app.bicep' = { | |
name: 'deploy-api-${envName}' | |
params: { | |
name: 'api${envName}' | |
location: location | |
frontDoorId: frontDoor.outputs.id | |
} | |
} | |
module apiRoute 'services/frontdoor-route.bicep' = { | |
name: 'deploy-fd-${envName}-api-route' | |
params: { | |
frontDoorName: frontDoor.outputs.name | |
endpointName: apiEndpoint.outputs.name | |
originGroupName: 'api' | |
originHostName: api.outputs.hostName | |
originPath: '/' | |
patternsToMatch: [ | |
'/*' | |
'/' | |
] | |
customDomains: [ | |
{ | |
id: apiDomain.outputs.id | |
} | |
] | |
isCachingEnabled: false | |
isCompressionEnabled: true | |
linkToDefaultDomain: 'Enabled' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment