web/sites properties incorrectly reported as nonexistent when referencing
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 21m
- Merged PRs (30d)
- 79
Description
**Bicep version**
Bicep CLI version 0.4.613 (d826ce8411)
**Describe the bug**
When referencing the ` inboundIpAddress` and ` possibleInboundIpAddresses` properties of a web site, Bicep informs that those properties don't exist, but ARM returns the contents of those properties without issue.
**To Reproduce**
```
resource siteRes 'Microsoft.Web/sites@2021-01-15' = {
name: site.name
location: resourceGroup().location
tags: tags
(....)
}
output site object = {
name: siteRes.name
inboundIpAddress: siteRes.properties.inboundIpAddress
possibleInboundIPAddresses: split(siteRes.properties.possibleInboundIPAddresses, ',')
}
````
```
Warning BCP053: The type "SiteProperties" does not contain property "inboundIpAddress". Available properties include "availabilityState", "clientAffinityEnabled", "clientCertEnabled", "clientCertExclusionPaths", "clientCertMode", "cloningInfo", "containerSize", "customDomainVerificationId", "dailyMemoryTimeQuota", "defaultHostName", "enabled", "enabledHostNames", "hostingEnvironmentProfile", "hostNames", "hostNamesDisabled", "hostNameSslStates", "httpsOnly", "hyperV", "inProgressOperationId", "isDefaultContainer", "isXenon", "keyVaultReferenceIdentity", "lastModifiedTimeUtc", "maxNumberOfWorkers", "outboundIpAddresses", "possibleOutboundIpAddresses", "redundancyMode", "repositorySiteName", "reserved", "resourceGroup", "scmSiteAlsoStopped", "serverFarmId", "siteConfig", "slotSwapStatus", "state", "storageAccountRequired", "suspendedTill", "targetSwapSlot", "trafficManagerHostNames", "usageState", "virtualNetworkSubnetId".
Warning BCP083: The type "SiteProperties" does not contain property "possibleInboundIPAddresses". Did you mean "possibleOutboundIpAddresses"?
```
Contributor guide
Research direction
Start with the Bicep CLI version and the Microsoft.Web/sites@2021-01-15 reproduction in the issue, then trace how SiteProperties is defined and validated. Done means inboundIpAddress and possibleInboundIPAddresses are accepted for siteRes.properties without the reported BCP053 or BCP083 warnings, with coverage for this resource shape.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100