healthCheckPath is not allowed on objects of type SiteConfig
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 44
- Avg merge
- 18h 53m
- Merged PRs (30d)
- 29
Description
### Resource Type
Microsoft.Web/sites/slots/config
### Api Version
2022-03-01
### Issue Type
Missing property(s)
### Other Notes
Warning BCP037: The property "healthCheckPath" is not allowed on objects of type "SiteConfig". Permissible properties include "apiDefinition", "appCommandLine", "appSettings", "autoSwapSlotName", "connectionStrings", "cors", "documentRoot", "experiments", "handlerMappings", "ipSecurityRestrictions", "javaContainer", "javaContainerVersion", "javaVersion", "limits", "linuxFxVersion", "nodeVersion", "push", "pythonVersion", "remoteDebuggingVersion", "requestTracingExpirationTime", "tracingOptions", "vnetName".
### Bicep Repro
resource websiteConfig 'Microsoft.Web/sites/slots/config@2018-11-01' = {
parent: webSite
name: 'web'
location: azureLocation
properties: {
numberOfWorkers: 1
defaultDocuments: [
'iisstart.htm'
'default.aspx'
'hostingstart.html'
'index.aspx'
'login.aspx'
]
netFrameworkVersion: 'v4.0'
phpVersion: '5.6'
requestTracingEnabled: false
remoteDebuggingEnabled: false
httpLoggingEnabled: false
logsDirectorySizeLimit: 35
detailedErrorLoggingEnabled: false
publishingUsername: '$${appServiceName}'
scmType: 'VSTSRM'
use32BitWorkerProcess: false
webSocketsEnabled: true
alwaysOn: alwaysOn
managedPipelineMode: 'Integrated'
virtualApplications: [
{
virtualPath: '/'
physicalPath: 'site\\wwwroot'
preloadEnabled: false
}
{
virtualPath: '/next'
physicalPath: 'site\\dist'
preloadEnabled: false
}
{
virtualPath: '/gateway'
physicalPath: 'site\\gateway'
preloadEnabled: false
}
]
loadBalancing: 'LeastRequests'
healthCheckPath: '/api/health'
autoHealEnabled: true
autoHealRules: {
triggers: {
privateBytesInKB: autoHealTriggerPrivateBytesInKb
}
actions: {
actionType: 'LogEvent'
minProcessExecutionTime: '00:00:00'
}
}
localMySqlEnabled: false
http20Enabled: false
minTlsVersion: '1.2'
ftpsState: 'AllAllowed'
reservedInstanceCount: 0
}
}
resource websiteConfig 'Microsoft.Web/sites/config@2016-08-01' = {
parent: webSite
name: 'web'
properties: {
numberOfWorkers: 1
defaultDocuments: [
'iisstart.htm'
'default.aspx'
'hostingstart.html'
'index.aspx'
'login.aspx'
'index.html'
]
netFrameworkVersion: 'v4.6'
phpVersion: '5.6'
requestTracingEnabled: true
remoteDebuggingEnabled: false
httpLoggingEnabled: false
logsDirectorySizeLimit: 35
detailedErrorLoggingEnabled: true
publishingUsername: '$${appServiceName}'
scmType: 'None'
use32BitWorkerProcess: use32bitWorkerProcess
webSocketsEnabled: true
alwaysOn: alwaysOn
managedPipelineMode: 'Integrated'
virtualApplications: [
{
virtualPath: '/'
physicalPath: 'site\\wwwroot'
preloadEnabled: true
}
{
virtualPath: '/next'
physicalPath: 'site\\dist'
preloadEnabled: false
}
{
virtualPath: '/gateway'
physicalPath: 'site\\gateway'
preloadEnabled: false
}
]
loadBalancing: 'LeastRequests'
healthCheckPath: '/api/health'
autoHealEnabled: true
autoHealRules: {
triggers: {
privateBytesInKB: autoHealTriggerPrivateBytesInKb
}
actions: {
actionType: 'LogEvent'
minProcessExecutionTime: '00:00:00'
}
}
localMySqlEnabled: false
http20Enabled: false
minTlsVersion: '1.2'
}
}
### Confirm
- [X] I have read the troubleshooting guide and looked for duplicates.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the Microsoft.Web/sites/slots/config and Microsoft.Web/sites/config type definitions for API versions 2022-03-01, 2018-11-01, and 2016-08-01. Compare the SiteConfig properties with the Bicep repro, add support for healthCheckPath if appropriate, and run the repository's type-generation or validation checks to confirm the warning is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, typescript
- Domain
- cloud, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100