Skip to content

Commit

Permalink
Merge pull request Azure#8869 from johndowns/update-front-door-premiu…
Browse files Browse the repository at this point in the history
…m-app-service-private-link

Update AFDX sample - Front Door Standard/Premium (Preview) with App Service and private endpoint
  • Loading branch information
bmoore-msft authored Mar 10, 2021
2 parents abdde4c + 2e7bad1 commit 13afb58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@
},
"dependsOn": [
"[resourceId('Microsoft.Cdn/profiles/afdEndpoints', split(format('{0}/{1}', variables('profileName'), parameters('endpointName')), '/')[0], split(format('{0}/{1}', variables('profileName'), parameters('endpointName')), '/')[1])]",
"[resourceId('Microsoft.Cdn/profiles/originGroups/origins', split(format('{0}/{1}', format('{0}/{1}', variables('profileName'), variables('originGroupName')), variables('originName')), '/')[0], split(format('{0}/{1}', format('{0}/{1}', variables('profileName'), variables('originGroupName')), variables('originName')), '/')[1], split(format('{0}/{1}', format('{0}/{1}', variables('profileName'), variables('originGroupName')), variables('originName')), '/')[2])]",
"[resourceId('Microsoft.Cdn/profiles/originGroups', split(format('{0}/{1}', variables('profileName'), variables('originGroupName')), '/')[0], split(format('{0}/{1}', variables('profileName'), variables('originGroupName')), '/')[1])]"
]
}
Expand Down Expand Up @@ -422,8 +423,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.2.481.31468",
"templateHash": "9336460033928454750"
"version": "0.3.1.62928",
"templateHash": "9811260099064148025"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"summary": "This template creates a Front Door Premium (Preview) and an App Service, and uses a private endpoint for Front Door to send traffic to the application.",
"githubUsername": "johndowns",
"docOwner": "johndowns",
"dateUpdated": "2021-02-24",
"dateUpdated": "2021-03-10",
"environments": [
"AzureCloud"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ resource origin 'Microsoft.Cdn/profiles/originGroups/origins@2020-09-01' = {

resource route 'Microsoft.Cdn/profiles/afdEndpoints/routes@2020-09-01' = {
name: '${endpoint.name}/${routeName}'
dependsOn: [
origin // This explicit dependency is required to ensure that the origin group is not empty when the route is created.
]
properties: {
originGroup: {
id: originGroup.id
Expand Down

0 comments on commit 13afb58

Please sign in to comment.