Skip to content

Instantly share code, notes, and snippets.

@papeMK2
Last active August 25, 2022 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save papeMK2/e695f7f910da8b935c654643f1bf2217 to your computer and use it in GitHub Desktop.
Save papeMK2/e695f7f910da8b935c654643f1bf2217 to your computer and use it in GitHub Desktop.
Create App Service
param location string = resourceGroup().location
resource plan 'Microsoft.Web/serverfarms@2020-06-01' = {
name: 'plan-appservice-lab'
location: location
kind: 'app'
properties: {}
sku: {
name: 'S1'
}
}
resource appService 'Microsoft.Web/sites@2020-06-01' = {
name: 'app-appservice-lab'
location: location
properties: {
serverFarmId: plan.id
}
}
az group create --name rg-lab --location japaneast &^
az deployment group create --resource-group rg-lab --template-file main.bicep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment