-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp-service-plan.bicep
45 lines (40 loc) · 1.31 KB
/
app-service-plan.bicep
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
33
34
35
36
37
38
39
40
41
42
43
44
45
@description('Name of the resource.')
param name string
@description('Location to deploy the resource. Defaults to the location of the resource group.')
param location string = resourceGroup().location
@description('Tags for the resource.')
param tags object = {}
@export()
@description('SKU information for App Service Plan.')
type skuInfo = {
@description('Name of the SKU.')
name: 'F1' | 'D1' | 'B1' | 'B2' | 'B3' | 'S1' | 'S2' | 'S3' | 'P1' | 'P2' | 'P3' | 'I1' | 'I2' | 'I3' | 'Y1'
}
@description('App Service Plan SKU. Defaults to Y1.')
param sku skuInfo = {
name: 'Y1'
}
@description('App Service Plan Kind. Defaults to linux.')
@allowed([
'functionapp'
'linux'
])
param kind string = 'linux'
@description('Whether a Linux App Service Plan. Defaults to true.')
param reserved bool = true
resource appServicePlan 'Microsoft.Web/serverfarms@2023-12-01' = {
name: name
location: location
tags: tags
sku: sku
kind: kind
properties: {
reserved: reserved
}
}
@description('The deployed App Service Plan resource.')
output resource resource = appServicePlan
@description('ID for the deployed App Service Plan resource.')
output id string = appServicePlan.id
@description('Name for the deployed App Service Plan resource.')
output name string = appServicePlan.name