Skip to content

Instantly share code, notes, and snippets.

@papeMK2
Created May 12, 2023 05:38
Show Gist options
  • Save papeMK2/fbc0393c9f863c516301c6042cf6c797 to your computer and use it in GitHub Desktop.
Save papeMK2/fbc0393c9f863c516301c6042cf6c797 to your computer and use it in GitHub Desktop.
App Service with bicepparam
param location string = resourceGroup().location
var suffix = guid('guid')
resource plan 'Microsoft.Web/serverfarms@2022-03-01' = {
name: 'plan-demo-lab-${suffix}'
location: location
kind: 'app'
sku: {
name: 'B1'
}
}
resource app 'Microsoft.Web/sites@2022-03-01' = {
name: 'app-demo-lab-${suffix}'
location: location
kind: 'app'
identity: {
type: 'SystemAssigned'
}
properties: {
serverFarmId: plan.id
}
}
{
"experimentalFeaturesEnabled": {
"paramsFiles": true
}
}
using 'main.bicep'
param location = 'japaneast'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment