Skip to content

Commit

Permalink
updated bicep API version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordonby committed Sep 8, 2024
1 parent 20642b1 commit 410576f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions infra/foundationalModules/functionapp.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ var identityUserAndSystemAssigned = {
}
}

resource functionApp 'Microsoft.Web/sites@2022-03-01' = {
resource functionApp 'Microsoft.Web/sites@2023-12-01' = {
name: webAppName
location: location
kind: 'functionapp'
Expand Down Expand Up @@ -121,15 +121,15 @@ resource fnAppUai 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31'
name: fnAppIdentityName
}

resource webAppConfig 'Microsoft.Web/sites/config@2022-03-01' = if (!empty(repoUrl)) {
resource webAppConfig 'Microsoft.Web/sites/config@2023-12-01' = if (!empty(repoUrl)) {
parent: functionApp
name: 'web'
properties: {
scmType: 'ExternalGit'
}
}

resource webAppLogging 'Microsoft.Web/sites/config@2022-03-01' = {
resource webAppLogging 'Microsoft.Web/sites/config@2023-12-01' = {
parent: functionApp
name: 'logs'
properties: {
Expand All @@ -151,7 +151,7 @@ resource webAppLogging 'Microsoft.Web/sites/config@2022-03-01' = {
param repoUrl string = ''
param repoPath string = ''
param repoBranchProduction string = 'main'
resource codeDeploy 'Microsoft.Web/sites/sourcecontrols@2022-03-01' = if (!empty(repoUrl) && !empty(repoBranchProduction)) {
resource codeDeploy 'Microsoft.Web/sites/sourcecontrols@2023-12-01' = if (!empty(repoUrl) && !empty(repoBranchProduction)) {
parent: functionApp
name: 'web'
properties: {
Expand All @@ -161,7 +161,7 @@ resource codeDeploy 'Microsoft.Web/sites/sourcecontrols@2022-03-01' = if (!empty
}
}

resource storageAccount 'Microsoft.Storage/storageAccounts@2022-09-01' = {
resource storageAccount 'Microsoft.Storage/storageAccounts@2023-05-01' = {
name: storageAccountName
location: location
kind: 'StorageV2'
Expand All @@ -170,7 +170,7 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2022-09-01' = {
}
}

resource hostingPlan 'Microsoft.Web/serverfarms@2022-03-01' = {
resource hostingPlan 'Microsoft.Web/serverfarms@2023-12-01' = {
name: hostingPlanName
location: location
sku: {
Expand Down
2 changes: 1 addition & 1 deletion infra/foundationalModules/loganalytics.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ param location string = resourceGroup().location

var log_name = 'log-${resNameSeed}'

resource log 'Microsoft.OperationalInsights/workspaces@2022-10-01' = {
resource log 'Microsoft.OperationalInsights/workspaces@2023-09-01' = {
name: log_name
location: location
properties: {
Expand Down

0 comments on commit 410576f

Please sign in to comment.