Skip to content

Commit 0c5d99e

Browse files
committed
source refreshed from azd repo
1 parent 687aa02 commit 0c5d99e

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed

infra/core/host/appservice-appsettings.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
metadata description = 'Updates app settings for an Azure App Service.'
12
@description('The name of the app service resource within the current resource group scope')
23
param name string
34

infra/core/host/appservice.bicep

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
metadata description = 'Creates an Azure App Service in an existing Azure App Service plan.'
12
param name string
23
param location string = resourceGroup().location
34
param tags object = {}
@@ -64,34 +65,24 @@ resource appService 'Microsoft.Web/sites@2022-03-01' = {
6465

6566
identity: { type: managedIdentity ? 'SystemAssigned' : 'None' }
6667

67-
resource configLogs 'config' = {
68-
name: 'logs'
69-
properties: {
70-
applicationLogs: { fileSystem: { level: 'Verbose' } }
71-
detailedErrorMessages: { enabled: true }
72-
failedRequestsTracing: { enabled: true }
73-
httpLogs: { fileSystem: { enabled: true, retentionInDays: 1, retentionInMb: 35 } }
74-
}
75-
}
76-
7768
resource basicPublishingCredentialsPoliciesFtp 'basicPublishingCredentialsPolicies' = {
7869
name: 'ftp'
79-
location: location
8070
properties: {
8171
allow: false
8272
}
8373
}
8474

8575
resource basicPublishingCredentialsPoliciesScm 'basicPublishingCredentialsPolicies' = {
8676
name: 'scm'
87-
location: location
8877
properties: {
8978
allow: false
9079
}
9180
}
9281
}
9382

94-
module config 'appservice-appsettings.bicep' = if (!empty(appSettings)) {
83+
// Updates to the single Microsoft.sites/web/config resources that need to be performed sequentially
84+
// sites/web/config 'appsettings'
85+
module configAppSettings 'appservice-appsettings.bicep' = {
9586
name: '${name}-appSettings'
9687
params: {
9788
name: appService.name
@@ -106,6 +97,19 @@ module config 'appservice-appsettings.bicep' = if (!empty(appSettings)) {
10697
}
10798
}
10899

100+
// sites/web/config 'logs'
101+
resource configLogs 'Microsoft.Web/sites/config@2022-03-01' = {
102+
name: 'logs'
103+
parent: appService
104+
properties: {
105+
applicationLogs: { fileSystem: { level: 'Verbose' } }
106+
detailedErrorMessages: { enabled: true }
107+
failedRequestsTracing: { enabled: true }
108+
httpLogs: { fileSystem: { enabled: true, retentionInDays: 1, retentionInMb: 35 } }
109+
}
110+
dependsOn: [configAppSettings]
111+
}
112+
109113
resource keyVault 'Microsoft.KeyVault/vaults@2022-07-01' existing = if (!(empty(keyVaultName))) {
110114
name: keyVaultName
111115
}

infra/core/host/appserviceplan.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
metadata description = 'Creates an Azure App Service plan.'
12
param name string
23
param location string = resourceGroup().location
34
param tags object = {}

0 commit comments

Comments
 (0)