App Service Stack settings are empty #6324
-
Bicep CLI version 0.4.1318 (ee0d808) Describe the bug To Reproduce resource appName_web 'Microsoft.Web/sites/config@2021-03-01' = {
parent: webapp
name: 'web'
properties: {
numberOfWorkers: 1
defaultDocuments: [
'Default.htm'
'Default.html'
'Default.asp'
'index.htm'
'index.html'
'iisstart.htm'
'default.aspx'
'index.php'
'hostingstart.html'
]
netFrameworkVersion: 'v6.0'
requestTracingEnabled: true
requestTracingExpirationTime: '9999-12-31T23:59:00Z'
remoteDebuggingEnabled: false
remoteDebuggingVersion: 'VS2019'
httpLoggingEnabled: false
acrUseManagedIdentityCreds: false
logsDirectorySizeLimit: 35
detailedErrorLoggingEnabled: true
publishingUsername: '$${appName}'
scmType: 'VSTSRM'
use32BitWorkerProcess: false
webSocketsEnabled: false
alwaysOn: true
managedPipelineMode: 'Integrated'
virtualApplications: [
{
virtualPath: '/'
physicalPath: 'site\\wwwroot'
preloadEnabled: true
}
]
loadBalancing: 'LeastRequests'
experiments: {
rampUpRules: []
}
autoHealEnabled: false
vnetRouteAllEnabled: false
vnetPrivatePortsCount: 0
localMySqlEnabled: false
ipSecurityRestrictions: [
{
ipAddress: 'Any'
action: 'Allow'
priority: 1
name: 'Allow all'
description: 'Allow all access'
}
]
scmIpSecurityRestrictions: [
{
ipAddress: 'Any'
action: 'Allow'
priority: 1
name: 'Allow all'
description: 'Allow all access'
}
]
scmIpSecurityRestrictionsUseMain: false
http20Enabled: true
minTlsVersion: '1.2'
scmMinTlsVersion: '1.2'
ftpsState: 'FtpsOnly'
preWarmedInstanceCount: 0
functionAppScaleLimit: 0
healthCheckPath: '/'
functionsRuntimeScaleMonitoringEnabled: false
websiteTimeZone: 'Eastern Standard Time'
minimumElasticInstanceCount: 1
azureStorageAccounts: {}
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
if you review this doc it shows the php version can be listed ad updated as part of the here is a sample template that shows how to pass this in https://github.com/brwilkinson/AzureDeploymentFramework/blob/main/ADF/bicep/x.appService.bicep#L92 resource WS 'Microsoft.Web/sites@2021-01-01' = {
name: '${Deployment}-${appprefix}${ws.Name}'
identity: {
type: 'SystemAssigned, UserAssigned'
userAssignedIdentities: (contains(MSILookup, ws.NAME) ? userAssignedIdentities[MSILookup[ws.NAME]] : userAssignedIdentities.Default)
}
kind: ws.kind
location: resourceGroup().location
properties: {
enabled: true
httpsOnly: true
serverFarmId: FARM.id
siteConfig: {
// az webapp list-runtimes, this setting is linux only
linuxFxVersion: empty(linuxFxVersion) ? null : linuxFxVersion
}
}
dependsOn: [
WebSiteDNS
]
} I call that from this other template since that is a module: module container 'x.appService.bicep' = [for (ws, index) in WebSiteInfo: if (WSInfo[index].match) {
name: 'dp${Deployment}-ws${ws.Name}'
params: {
ws: ws
appprefix: 'ws'
Deployment: Deployment
DeploymentURI: DeploymentURI
linuxFxVersion: 'COMPOSE|${WSInfo[index].compose}' So try:
|
Beta Was this translation helpful? Give feedback.
-
I had a very similar issue: PHP 7.4 on Windows App Service, and I was unable to get the Stack set. |
Beta Was this translation helpful? Give feedback.
if you review this doc it shows the php version can be listed ad updated as part of the
linuxFxVersion
https://docs.microsoft.com/en-us/azure/app-service/configure-language-php?pivots=platform-linux#show-php-version
here is a sample template that shows how to pass this in
https://github.com/brwilkinson/AzureDeploymentFramework/blob/main/ADF/bicep/x.appService.bicep#L92