From dd7533aa446d45c396bd4e6924059f91868f63af Mon Sep 17 00:00:00 2001 From: Daniel Scott-Raynsford Date: Sun, 6 Oct 2024 09:36:16 +1300 Subject: [PATCH] chore: Update Bicep resource versions and set 'alwaysOn' for Foundry Web App --- CHANGELOG.md | 9 +++++++++ bicep/modules/appServicePlan.bicep | 2 +- bicep/modules/storageAccount.bicep | 6 +++--- bicep/modules/webAppDdbProxy.bicep | 4 ++-- bicep/modules/webAppFoundryVtt.bicep | 5 +++-- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 067e511..7fad72a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,15 @@ The format is based on and uses the types of changes according to [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [0.5.1] - 2024-10-06 + +### Changed + +- Updated Bicep resource versions to latest for Azure App Service and + Storage. +- Set `alwaysOn` to `true` for the Foundry Web App. + ## [0.5.0] - 2024-06-01 ### Added diff --git a/bicep/modules/appServicePlan.bicep b/bicep/modules/appServicePlan.bicep index ba23ab8..8adf772 100644 --- a/bicep/modules/appServicePlan.bicep +++ b/bicep/modules/appServicePlan.bicep @@ -85,7 +85,7 @@ var appServicePlanSkuConfigurationMap = { } } -resource appServicePlan 'Microsoft.Web/serverfarms@2021-01-15' = { +resource appServicePlan 'Microsoft.Web/serverfarms@2023-12-01' = { name: appServicePlanName location: location kind: 'linux' diff --git a/bicep/modules/storageAccount.bicep b/bicep/modules/storageAccount.bicep index 7584646..3c84030 100644 --- a/bicep/modules/storageAccount.bicep +++ b/bicep/modules/storageAccount.bicep @@ -23,7 +23,7 @@ var storageConfigurationMap = { } } -resource storageAccount 'Microsoft.Storage/storageAccounts@2021-04-01' = { +resource storageAccount 'Microsoft.Storage/storageAccounts@2023-05-01' = { name: storageAccountName location: location kind: storageConfigurationMap[storageConfiguration].kind @@ -36,10 +36,10 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2021-04-01' = { largeFileSharesState: storageConfigurationMap[storageConfiguration].largeFileSharesState } - resource symbolicname 'fileServices@2021-02-01' = { + resource symbolicname 'fileServices@2023-05-01' = { name: 'default' - resource symbolicname 'shares@2021-02-01' = { + resource symbolicname 'shares@2023-05-01' = { name: storageShareName properties: { enabledProtocols: 'SMB' diff --git a/bicep/modules/webAppDdbProxy.bicep b/bicep/modules/webAppDdbProxy.bicep index 250b83c..b894486 100644 --- a/bicep/modules/webAppDdbProxy.bicep +++ b/bicep/modules/webAppDdbProxy.bicep @@ -4,7 +4,7 @@ param webAppName string var linuxFxVersion = 'DOCKER|ghcr.io/mrprimate/ddb-proxy:latest' -resource webApp 'Microsoft.Web/sites@2021-01-15' = { +resource webApp 'Microsoft.Web/sites@2023-12-01' = { name: webAppName location: location kind: 'app,linux,container' @@ -31,7 +31,7 @@ resource webApp 'Microsoft.Web/sites@2021-01-15' = { } } - resource config 'config@2021-01-15' = { + resource config 'config@2023-12-01' = { name: 'web' properties: { linuxFxVersion: linuxFxVersion diff --git a/bicep/modules/webAppFoundryVtt.bicep b/bicep/modules/webAppFoundryVtt.bicep index ec1629c..c8649d5 100644 --- a/bicep/modules/webAppFoundryVtt.bicep +++ b/bicep/modules/webAppFoundryVtt.bicep @@ -14,7 +14,7 @@ param foundryAdminKey string var linuxFxVersion = 'DOCKER|felddy/foundryvtt:release' -resource webApp 'Microsoft.Web/sites@2021-01-15' = { +resource webApp 'Microsoft.Web/sites@2023-12-01' = { name: webAppName location: location kind: 'app,linux,container' @@ -24,6 +24,7 @@ resource webApp 'Microsoft.Web/sites@2021-01-15' = { siteConfig: { numberOfWorkers: 1 linuxFxVersion: linuxFxVersion + alwaysOn: true appSettings: [ { name: 'DOCKER_REGISTRY_SERVER_PASSWORD' @@ -72,7 +73,7 @@ resource webApp 'Microsoft.Web/sites@2021-01-15' = { } } - resource config 'config@2021-01-15' = { + resource config 'config@2023-12-01' = { name: 'web' properties: { linuxFxVersion: linuxFxVersion