Azure / Azure/bicep-types-az

[Microsoft.Web/sites]: Type is unavailable

Open
#1,691 0 comments 0 reactions 0 assignees View on GitHub
inaccuracy No RP Github RP: Microsoft.Web
Dominant language
TypeScript
Stars
108
Forks
44
Avg merge
18h 53m
Merged PRs (30d)
29

Description

### Resource Type

Microsoft.Web/sites

### Api Version

2022-03-01

### Issue Type

Type is unavailable

### Other Notes

The property "scmIpSecurityRestrictionsDefaultAction" is not allowed on objects of type "SiteConfig".

https://learn.microsoft.com/en-us/azure/app-service/app-service-ip-restrictions?tabs=bicep#change-unmatched-rule-action-for-advanced-tool-site

### Bicep Repro

properties: {
enabled: true
serverFarmId: ingestionAppServicePlanResource.id
httpsOnly: true
siteConfig: {
appSettings: [ ]
scmIpSecurityRestrictionsDefaultAction: 'Deny'
}
virtualNetworkSubnetId: resourceId('Microsoft.Network/virtualNetworks/subnets', ingestionVirtualNetworkResource.name, ingestionSubnetDefaultName) //ingestionSubnetDefaultResource.id
keyVaultReferenceIdentity: 'SystemAssigned'
}

### 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 type definition for API version 2022-03-01 and compare its SiteConfig properties with the Azure documentation linked in the issue. Reproduce the Bicep example and verify that scmIpSecurityRestrictionsDefaultAction is accepted for SiteConfig without type errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.