Azure / Azure/bicep-types-az

Microsoft.Web/Sites

Open
#1,968 14 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
108
Forks
44
Avg merge
18h 53m
Merged PRs (30d)
29

Description

**Bicep version**
0.4.1

**Describe the bug**
The property "metadata" is not allowed on objects of type "SiteConfig".

**To Reproduce**
```
resource site 'Microsoft.Web/sites@2021-01-01' = {
name: 'site'
location: 'west europe'
kind: 'app'
properties: {
enabled: true
siteConfig: {
metadata: [
{
name: 'CURRENT_STACK'
value: 'dotnetcore'
}
]
}
}
}
```

It compiles and works but it does give a warning: Warning BCP037

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the reproduction using Bicep 0.4.1 and the Microsoft.Web/sites@2021-01-01 resource shown in the issue. Locate the SiteConfig type definition for Microsoft.Web/Sites and compare its supported properties with the example; done means the metadata property is accepted without warning and the resource still compiles.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.