Azure / Azure/bicep-types-az

[Microsoft.Web/sites@2022-09-01]: name property

Open
#1,683 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

/sites@2022-09-01

### Issue Type

Missing property(s)

### Other Notes

Setting the value `properties.name` is marked with warning **Warning BCP037**, but it is required when deploying the Azure functions on Container Apps (see the [example](https://github.com/Azure/azure-functions-on-container-apps/blob/42b6d45f12c16ba454f56d3dd18b5ea9a13ba4b2/samples/Biceptemplates/Func_on_ACA_Bicepdeploy.bicep#L68C6-L68C6)]).

Without that value, the deployment fails.

### Bicep Repro

```bicep
resource func 'Microsoft.Web/sites@2022-09-01' = {
name: funcName
location: Location
kind: 'functionapp'
properties: {
name: funcName
```

### Confirm

- [X] I have read the troubleshooting guide and looked for duplicates.

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect the type definition for Microsoft.Web/sites@2022-09-01 and reproduce the warning with the Bicep snippet in the issue. Compare it with the linked Func_on_ACA_Bicepdeploy.bicep example, then verify that properties.name is accepted without BCP037 and that the deployment scenario no longer fails.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.