Skip to content

Commit

Permalink
chore: Update Bicep resource versions and set 'alwaysOn' for Foundry …
Browse files Browse the repository at this point in the history
…Web App
  • Loading branch information
PlagueHO committed Oct 5, 2024
1 parent c7b6b14 commit dd7533a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bicep/modules/appServicePlan.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions bicep/modules/storageAccount.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions bicep/modules/webAppDdbProxy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions bicep/modules/webAppFoundryVtt.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dd7533a

Please sign in to comment.