-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split routes into 2 different files due to Azure/bicep#1410
- Loading branch information
1 parent
397a8f3
commit 99cc7d8
Showing
3 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
param frontdoor_name string | ||
param endpoint_name string | ||
param origin_group_id string | ||
param origin_path string | ||
param route_name string | ||
param accepted_routes array | ||
|
||
|
||
resource parent 'Microsoft.Cdn/profiles@2021-06-01' existing = { | ||
name: frontdoor_name | ||
} | ||
|
||
resource endpoint 'Microsoft.Cdn/profiles/afdendpoints@2021-06-01' existing = { | ||
parent: parent | ||
name: endpoint_name | ||
} | ||
|
||
resource routes 'Microsoft.Cdn/profiles/afdendpoints/routes@2021-06-01' = { | ||
parent: endpoint | ||
name: route_name | ||
properties: { | ||
customDomains: [] | ||
originGroup: { | ||
id: origin_group_id | ||
} | ||
originPath: origin_path | ||
supportedProtocols: [ | ||
'Http' | ||
'Https' | ||
] | ||
patternsToMatch: accepted_routes | ||
forwardingProtocol: 'MatchRequest' | ||
linkToDefaultDomain: 'Enabled' | ||
httpsRedirect: 'Enabled' | ||
enabledState: 'Enabled' | ||
} | ||
} | ||
|