Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions infra/core/gateway/apim.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ param skuCount int = 0
@description('Azure Application Insights Name')
param applicationInsightsName string

resource apimService 'Microsoft.ApiManagement/service@2021-08-01' = {
resource apimService 'Microsoft.ApiManagement/service@2023-03-01-preview' = {
name: name
location: location
tags: union(tags, { 'azd-service-name': name })
Expand Down Expand Up @@ -57,7 +57,7 @@ resource apimService 'Microsoft.ApiManagement/service@2021-08-01' = {
}
}

resource apimLogger 'Microsoft.ApiManagement/service/loggers@2021-12-01-preview' = if (!empty(applicationInsightsName)) {
resource apimLogger 'Microsoft.ApiManagement/service/loggers@2023-03-01-preview' = if (!empty(applicationInsightsName)) {
name: 'app-insights-logger'
parent: apimService
properties: {
Expand All @@ -71,7 +71,7 @@ resource apimLogger 'Microsoft.ApiManagement/service/loggers@2021-12-01-preview'
}
}

resource applicationInsights 'Microsoft.Insights/components@2020-02-02' existing = if (!empty(applicationInsightsName)) {
resource applicationInsights 'Microsoft.Insights/components@2020-02-02-preview' existing = if (!empty(applicationInsightsName)) {
name: applicationInsightsName
}

Expand Down
2 changes: 1 addition & 1 deletion infra/core/host/aks.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ var addOnsConfig = union(
)

// Link to existing log analytics workspace when available
resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2021-12-01-preview' existing = if (!empty(logAnalyticsName)) {
resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2022-10-01' existing = if (!empty(logAnalyticsName)) {
name: logAnalyticsName
}

Expand Down
4 changes: 2 additions & 2 deletions infra/core/host/appservice-appsettings.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ param name string
@description('The app settings to be applied to the app service')
param appSettings object

resource appService 'Microsoft.Web/sites@2022-03-01' existing = {
resource appService 'Microsoft.Web/sites@2023-01-01' existing = {
name: name
}

resource settings 'Microsoft.Web/sites/config@2022-03-01' = {
resource settings 'Microsoft.Web/sites/config@2023-01-01' = {
name: 'appsettings'
parent: appService
properties: appSettings
Expand Down
6 changes: 2 additions & 4 deletions infra/core/host/appservice.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ param use32BitWorkerProcess bool = false
param ftpsState string = 'FtpsOnly'
param healthCheckPath string = ''

resource appService 'Microsoft.Web/sites@2022-03-01' = {
resource appService 'Microsoft.Web/sites@2023-01-01' = {
name: name
location: location
tags: tags
Expand Down Expand Up @@ -75,15 +75,13 @@ resource appService 'Microsoft.Web/sites@2022-03-01' = {

resource basicPublishingCredentialsPoliciesFtp 'basicPublishingCredentialsPolicies' = {
name: 'ftp'
location: location
properties: {
allow: false
}
}

resource basicPublishingCredentialsPoliciesScm 'basicPublishingCredentialsPolicies' = {
name: 'scm'
location: location
properties: {
allow: false
}
Expand All @@ -108,7 +106,7 @@ resource keyVault 'Microsoft.KeyVault/vaults@2022-07-01' existing = if (!(empty(
name: keyVaultName
}

resource applicationInsights 'Microsoft.Insights/components@2020-02-02' existing = if (!empty(applicationInsightsName)) {
resource applicationInsights 'Microsoft.Insights/components@2020-02-02-preview' existing = if (!empty(applicationInsightsName)) {
name: applicationInsightsName
}

Expand Down
2 changes: 1 addition & 1 deletion infra/core/host/appserviceplan.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ param kind string = ''
param reserved bool = true
param sku object

resource appServicePlan 'Microsoft.Web/serverfarms@2022-03-01' = {
resource appServicePlan 'Microsoft.Web/serverfarms@2023-01-01' = {
name: name
location: location
tags: tags
Expand Down
2 changes: 1 addition & 1 deletion infra/core/host/container-app-upsert.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ param containerCpuCoreCount string = '0.5'
@description('Memory allocated to a single container instance, e.g. 1Gi')
param containerMemory string = '1.0Gi'

resource existingApp 'Microsoft.App/containerApps@2022-03-01' existing = if (exists) {
resource existingApp 'Microsoft.App/containerApps@2023-05-01' existing = if (exists) {
name: name
}

Expand Down
6 changes: 3 additions & 3 deletions infra/core/host/container-app.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module containerRegistryAccess '../security/registry-access.bicep' = {
}
}

resource app 'Microsoft.App/containerApps@2022-03-01' = {
resource app 'Microsoft.App/containerApps@2023-05-01' = {
name: name
location: location
tags: tags
Expand Down Expand Up @@ -108,12 +108,12 @@ resource app 'Microsoft.App/containerApps@2022-03-01' = {
}
}

resource containerAppsEnvironment 'Microsoft.App/managedEnvironments@2022-03-01' existing = {
resource containerAppsEnvironment 'Microsoft.App/managedEnvironments@2023-05-01' existing = {
name: containerAppsEnvironmentName
}

// 2022-02-01-preview needed for anonymousPullEnabled
resource containerRegistry 'Microsoft.ContainerRegistry/registries@2022-02-01-preview' existing = {
resource containerRegistry 'Microsoft.ContainerRegistry/registries@2023-01-01-preview' existing = {
name: containerRegistryName
}

Expand Down
4 changes: 2 additions & 2 deletions infra/core/host/container-apps-environment.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ param daprEnabled bool = false
param logAnalyticsWorkspaceName string
param applicationInsightsName string = ''

resource containerAppsEnvironment 'Microsoft.App/managedEnvironments@2022-03-01' = {
resource containerAppsEnvironment 'Microsoft.App/managedEnvironments@2023-05-01' = {
name: name
location: location
tags: tags
Expand All @@ -26,7 +26,7 @@ resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2022-10
name: logAnalyticsWorkspaceName
}

resource applicationInsights 'Microsoft.Insights/components@2020-02-02' existing = if (daprEnabled && !empty(applicationInsightsName)){
resource applicationInsights 'Microsoft.Insights/components@2020-02-02-preview' existing = if (daprEnabled && !empty(applicationInsightsName)){
name: applicationInsightsName
}

Expand Down
2 changes: 1 addition & 1 deletion infra/core/host/container-registry.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ param zoneRedundancy string = 'Disabled'
param workspaceId string = ''

// 2022-02-01-preview needed for anonymousPullEnabled
resource containerRegistry 'Microsoft.ContainerRegistry/registries@2022-02-01-preview' = {
resource containerRegistry 'Microsoft.ContainerRegistry/registries@2023-01-01-preview' = {
name: name
location: location
tags: tags
Expand Down
2 changes: 1 addition & 1 deletion infra/core/host/functions.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module functions 'appservice.bicep' = {
}
}

resource storage 'Microsoft.Storage/storageAccounts@2021-09-01' existing = {
resource storage 'Microsoft.Storage/storageAccounts@2023-01-01' existing = {
name: storageAccountName
}

Expand Down
2 changes: 1 addition & 1 deletion infra/core/monitor/applicationinsights-dashboard.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,6 @@ resource applicationInsightsDashboard 'Microsoft.Portal/dashboards@2020-09-01-pr
}
}

resource applicationInsights 'Microsoft.Insights/components@2020-02-02' existing = {
resource applicationInsights 'Microsoft.Insights/components@2020-02-02-preview' existing = {
name: applicationInsightsName
}
2 changes: 1 addition & 1 deletion infra/core/monitor/applicationinsights.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ param tags object = {}

param logAnalyticsWorkspaceId string

resource applicationInsights 'Microsoft.Insights/components@2020-02-02' = {
resource applicationInsights 'Microsoft.Insights/components@2020-02-02-preview' = {
name: name
location: location
tags: tags
Expand Down
2 changes: 1 addition & 1 deletion infra/core/monitor/loganalytics.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ param name string
param location string = resourceGroup().location
param tags object = {}

resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2021-12-01-preview' = {
resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2022-10-01' = {
name: name
location: location
tags: tags
Expand Down
2 changes: 1 addition & 1 deletion infra/core/security/registry-access.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ resource aksAcrPull 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
}
}

resource containerRegistry 'Microsoft.ContainerRegistry/registries@2022-02-01-preview' existing = {
resource containerRegistry 'Microsoft.ContainerRegistry/registries@2023-01-01-preview' existing = {
name: containerRegistryName
}
2 changes: 1 addition & 1 deletion infra/core/storage/storage-account.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ param networkAcls object = {
param publicNetworkAccess string = 'Enabled'
param sku object = { name: 'Standard_LRS' }

resource storage 'Microsoft.Storage/storageAccounts@2022-05-01' = {
resource storage 'Microsoft.Storage/storageAccounts@2023-01-01' = {
name: name
location: location
tags: tags
Expand Down
Loading