Microsoft.Web/sites@2021-03-01 ipSecurityRestrictionsDefaultAction
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 44
- Avg merge
- 18h 53m
- Merged PRs (30d)
- 29
Description
### Resource Type
Microsoft.Web/sites
### Api Version
2021-03-01
### Issue Type
Confusing error message on deployment
### Other Notes
I am using the below mentioned bicep code which is present in official docs https://learn.microsoft.com/en-us/azure/app-service/app-service-ip-restrictions?tabs=bicep but when i deploy it, I get some warning message
```
Warning BCP037: The property "ipSecurityRestrictionsDefaultAction" from source declaration "siteConfig" is not allowed on objects of type "SiteConfig". Permissible properties include "acrUseManagedIdentityCreds", "acrUserManagedIdentityID", "apiDefinition", "apiManagementConfig", "appCommandLine", "appSettings", "autoHealEnabled", "autoHealRules", "autoSwapSlotName", "azureStorageAccounts", "connectionStrings", "cors", "defaultDocuments", "detailedErrorLoggingEnabled", "documentRoot", "experiments", "functionAppScaleLimit", "functionsRuntimeScaleMonitoringEnabled", "handlerMappings", "healthCheckPath", "httpLoggingEnabled", "javaContainer", "javaContainerVersion", "javaVersion", "keyVaultReferenceIdentity", "limits", "loadBalancing", "localMySqlEnabled", "logsDirectorySizeLimit", "managedPipelineMode", "managedServiceIdentityId", "minimumElasticInstanceCount", "netFrameworkVersion", "nodeVersion", "phpVersion", "powerShellVersion", "publicNetworkAccess", "publishingUsername", "push", "pythonVersion", "remoteDebuggingEnabled", "remoteDebuggingVersion", "requestTracingEnabled", "requestTracingExpirationTime", "scmType", "tracingOptions", "virtualApplications", "vnetName", "vnetPrivatePortsCount", "websiteTimeZone", "windowsFxVersion", "xManagedServiceIdentityId". If this is an inaccuracy in the documentation, please report it to the Bicep Team. [https://aka.ms/bicep-type-issues]
```
### Bicep Repro
```
resource appService 'Microsoft.Web/sites@2020-06-01' = {
name: webSiteName
location: location
kind: 'app'
properties: {
serverFarmId: appServicePlan.id
siteConfig: {
linuxFxVersion: linuxFxVersion
ipSecurityRestrictionsDefaultAction: ipSecurityRestrictionsDefaultAction
}
}
}
```
### Confirm
- [X] I have read the troubleshooting guide and looked for duplicates.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Microsoft.Web/sites SiteConfig definition for the 2021-03-01 API version and compare it with the 2020-06-01 Bicep repro and the linked Azure documentation. Verify whether ipSecurityRestrictionsDefaultAction is missing or documented under another version, then confirm that the corrected definition or documentation removes the BCP037 warning.
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
- Mostly clear
- Newbie friendliness
- 48/100