-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp-service-plan.bicep
More file actions
32 lines (26 loc) · 911 Bytes
/
app-service-plan.bicep
File metadata and controls
32 lines (26 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// ---------------------------------------------------------------------------
// app-service-plan.bicep — Linux App Service Plan
// ---------------------------------------------------------------------------
@description('Name of the App Service Plan.')
param name string
@description('Azure region for the App Service Plan.')
param location string
@description('SKU name for the App Service Plan. S1 or higher is required for VNet integration.')
@allowed(['B1', 'B2', 'B3', 'S1', 'P1v3', 'P2v3', 'P3v3'])
param skuName string = 'S1'
@description('Resource tags.')
param tags object = {}
resource appServicePlan 'Microsoft.Web/serverfarms@2023-12-01' = {
name: name
location: location
tags: tags
kind: 'linux'
sku: {
name: skuName
}
properties: {
reserved: true // Required for Linux
}
}
@description('Resource ID of the App Service Plan.')
output id string = appServicePlan.id