From 695c297c8e92889492d63a9f4c5f7e27d7973ab2 Mon Sep 17 00:00:00 2001
From: Piotr Wachulec
Date: Sun, 17 Mar 2024 18:13:19 +0100
Subject: [PATCH] Add app service plan template
---
src/infra/vm-start-stop.bicep | 12 ++++++++++++
src/infra/vm-start-stop.dev.bicepparam | 1 +
2 files changed, 13 insertions(+)
diff --git a/src/infra/vm-start-stop.bicep b/src/infra/vm-start-stop.bicep
index cdff83f..9ac0760 100644
--- a/src/infra/vm-start-stop.bicep
+++ b/src/infra/vm-start-stop.bicep
@@ -4,6 +4,9 @@ param location string = resourceGroup().location
@description('Name of the storage account')
param storageAccountName string
+@description('Name of the storage account')
+param appServicePlanName string
+
resource storageAccount 'Microsoft.Storage/storageAccounts@2023-01-01' = {
name: storageAccountName
location: location
@@ -12,3 +15,12 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2023-01-01' = {
}
kind: 'StorageV2'
}
+
+resource appServicePlan 'Microsoft.Web/serverfarms@2023-01-01' = {
+ name: appServicePlanName
+ location: location
+ sku: {
+ name: 'F1'
+ tier: 'Free'
+ }
+}
diff --git a/src/infra/vm-start-stop.dev.bicepparam b/src/infra/vm-start-stop.dev.bicepparam
index ea155ca..b8b3eab 100644
--- a/src/infra/vm-start-stop.dev.bicepparam
+++ b/src/infra/vm-start-stop.dev.bicepparam
@@ -1,3 +1,4 @@
using 'vm-start-stop.bicep'
param storageAccountName = 'eitvmsplcdevst1'
+param appServicePlanName = 'eit-vms-plc-prd-plan-1'