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 webRoute 'services/frontdoor-route.bicep' = { | |
name: 'deploy-fd-${envName}-web-route' | |
params: { | |
frontDoorName: frontDoor.outputs.name | |
endpointName: webEndpoint.outputs.name | |
originGroupName: 'web' | |
originHostName: web.outputs.hostName | |
originPath: '/' | |
patternsToMatch: [ | |
'/*' |
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 web 'services/storage-static-website.bicep' = { | |
name: 'deploy-web-${envName}' | |
params: { | |
name: 'web${envName}' | |
location: location | |
} | |
} |
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 webDomains 'services/frontdoor-custom-domain.bicep' = [for i in range(0, length(webHostNames)): { | |
name: 'deploy-fd-${envName}-web-domain-${i}' | |
params: { | |
frontDoorName: frontDoor.outputs.name | |
name: 'fd-web-${envName}-${i}' | |
hostName: webHostNames[i] | |
} | |
}] |
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 webEndpoint 'services/frontdoor-endpoint.bicep' = { | |
name: 'deploy-fd-${envName}-web-ep' | |
params: { | |
frontDoorName: frontDoor.outputs.name | |
name: 'ep-${envName}-web' | |
} | |
} |
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 webEndpoint 'services/frontdoor-endpoint.bicep' = { | |
name: 'deploy-fd-${envName}-web-ep' | |
params: { | |
frontDoorName: frontDoor.outputs.name | |
name: 'ep-${envName}-web' | |
} | |
} | |
module webDomains 'services/frontdoor-custom-domain.bicep' = [for i in range(0, length(webHostNames)): { | |
name: 'deploy-fd-${envName}-web-domain-${i}' |
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
param envName string | |
param location string = resourceGroup().location | |
param webHostNames array = [ | |
'explainthe.cloud' | |
'www.explainthe.cloud' | |
] | |
param docHostName string = 'docs.explainthe.cloud' | |
param apiHostName string = 'api.explainthe.cloud' |
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
param envName string | |
param location string = resourceGroup().location | |
param webHostNames array = [ | |
'explainthe.cloud' | |
'www.explainthe.cloud' | |
] | |
param docHostNames array = [ | |
'docs.explainthe.cloud' | |
] |
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
param name string | |
param location string | |
param frontDoorId string | |
resource storageAccount 'Microsoft.Storage/storageAccounts@2021-08-01' = { | |
name: name | |
location: location | |
sku: { | |
name: 'Standard_LRS' | |
} |
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
param name string | |
param location string | |
module storage 'storage.bicep' = { | |
name: 'deploy-${name}-storage' | |
params: { | |
location: location | |
name: name | |
} | |
} |
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
param name string | |
param location string | |
param deployerIdentityId string | |
resource storage 'Microsoft.Storage/storageAccounts@2022-05-01' existing = { | |
name: name | |
} | |
resource deploymentScript 'Microsoft.Resources/deploymentScripts@2020-10-01' = { | |
name: 'enableStaticWebsiteInStorageAccount-${name}' |