Azdevify eshopOnWeb
This commit is contained in:
25
infra/core/host/staticwebapp.bicep
Normal file
25
infra/core/host/staticwebapp.bicep
Normal file
@@ -0,0 +1,25 @@
|
||||
param environmentName string
|
||||
param location string = resourceGroup().location
|
||||
|
||||
param serviceName string
|
||||
param sku object = {
|
||||
name: 'Free'
|
||||
tier: 'Free'
|
||||
}
|
||||
|
||||
var abbrs = loadJsonContent('../../abbreviations.json')
|
||||
var resourceToken = toLower(uniqueString(subscription().id, environmentName, location))
|
||||
var tags = { 'azd-env-name': environmentName }
|
||||
|
||||
resource web 'Microsoft.Web/staticSites@2022-03-01' = {
|
||||
name: '${abbrs.webStaticSites}${serviceName}-${resourceToken}'
|
||||
location: location
|
||||
tags: union(tags, { 'azd-service-name': serviceName })
|
||||
sku: sku
|
||||
properties: {
|
||||
provider: 'Custom'
|
||||
}
|
||||
}
|
||||
|
||||
output name string = web.name
|
||||
output uri string = 'https://${web.properties.defaultHostname}'
|
||||
Reference in New Issue
Block a user