Files
eShopOnWeb/infra/core/host/appserviceplan.bicep
2022-10-25 14:06:09 +08:00

24 lines
611 B
Bicep

param environmentName string
param location string = resourceGroup().location
param kind string = ''
param reserved bool = true
param sku object
var abbrs = loadJsonContent('../../abbreviations.json')
var resourceToken = toLower(uniqueString(subscription().id, environmentName, location))
var tags = { 'azd-env-name': environmentName }
resource appServicePlan 'Microsoft.Web/serverfarms@2022-03-01' = {
name: '${abbrs.webServerFarms}${resourceToken}'
location: location
tags: tags
sku: sku
kind: kind
properties: {
reserved: reserved
}
}
output appServicePlanId string = appServicePlan.id