Azdevify eshopOnWeb

This commit is contained in:
zedy
2022-10-25 14:06:09 +08:00
parent a72dd775ee
commit 04895cc138
37 changed files with 2675 additions and 0 deletions

View 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}'