-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update from Cruft #20
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 was deleted.
Oops, something went wrong.
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,101 @@ | ||
metadata description = 'Creates an Azure Frontdoor CDN profile in front of a storage domain.' | ||
|
||
param name string | ||
param origin string | ||
param tags object = {} | ||
param allowHttp bool = false | ||
param httpsRedirect bool = true | ||
param defaultRouteName string = 'default-route' | ||
param defaultOriginGroupName string = 'default-origin-group' | ||
param defaultOriginName string = 'default-origin' | ||
|
||
@allowed(['Enabled', 'Disabled']) | ||
param sessionAffinityState string = 'Disabled' | ||
|
||
var supportedProtocols = allowHttp ? [ | ||
'Http' | ||
'Https' | ||
] : [ | ||
'Https' | ||
] | ||
|
||
@allowed(['Standard_AzureFrontDoor', 'Premium_AzureFrontDoor']) | ||
param sku string = 'Standard_AzureFrontDoor' | ||
|
||
param originResponseTimeoutSeconds int = 60 | ||
|
||
resource cdnProfile 'Microsoft.Cdn/profiles@2023-07-01-preview' = { | ||
name: name | ||
location: 'Global' | ||
tags: tags | ||
sku: { | ||
name: sku | ||
} | ||
properties: { | ||
originResponseTimeoutSeconds: originResponseTimeoutSeconds | ||
} | ||
} | ||
|
||
resource originGroups 'Microsoft.Cdn/profiles/origingroups@2022-11-01-preview' = { | ||
name: defaultOriginGroupName | ||
parent: cdnProfile | ||
properties: { | ||
loadBalancingSettings: { | ||
sampleSize: 4 | ||
successfulSamplesRequired: 3 | ||
additionalLatencyInMilliseconds: 50 | ||
} | ||
healthProbeSettings: { | ||
probePath: '/' | ||
probeRequestType: 'HEAD' | ||
probeProtocol: allowHttp ? 'Http' : 'Https' | ||
probeIntervalInSeconds: 100 | ||
} | ||
sessionAffinityState: sessionAffinityState | ||
} | ||
|
||
resource origins 'origins@2022-11-01-preview' = { | ||
name: defaultOriginName | ||
properties: { | ||
hostName: origin | ||
httpPort: 80 | ||
httpsPort: 443 | ||
originHostHeader: origin | ||
priority: 1 | ||
weight: 1000 | ||
enabledState: 'Enabled' | ||
enforceCertificateNameCheck: true | ||
} | ||
} | ||
} | ||
|
||
resource afdEndpoints 'Microsoft.Cdn/profiles/afdEndpoints@2023-05-01' = { | ||
parent: cdnProfile | ||
name: name | ||
location: 'Global' | ||
properties: { | ||
enabledState: 'Enabled' | ||
} | ||
|
||
resource routes 'routes@2022-11-01-preview' = { | ||
name: defaultRouteName | ||
properties: { | ||
customDomains: [] | ||
originGroup: { | ||
id: originGroups.id | ||
} | ||
ruleSets: [] | ||
supportedProtocols: supportedProtocols | ||
patternsToMatch: [ | ||
'/*' | ||
] | ||
forwardingProtocol: 'MatchRequest' | ||
linkToDefaultDomain: 'Enabled' | ||
httpsRedirect: httpsRedirect ? 'Enabled' : 'Disabled' | ||
enabledState: 'Enabled' | ||
} | ||
} | ||
} | ||
|
||
output cdnProfileId string = cdnProfile.id | ||
output endpointHostname string = afdEndpoints.properties.hostName |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / templateanalyzer
Managed identity. Error