Azure / Azure/bicep-types-az

Microsoft.Web/sites: missing sshEnabled

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

Description

### Resource Type

Microsoft.Web/sites

### Api Version

2023-12-01

### Issue Type

Missing property(s)

### Other Notes

Adding sshEnabled: true|false to the properties object displays a warning that:

`Warning BCP037: The property "sshEnabled" is not allowed on objects of type "SiteProperties".`
![Screenshot 2024-06-25 170609](https://github.com/Azure/bicep-types-az/assets/22238280/2c4eea10-48d2-4e25-b438-4faeeff27368)

However, when added it does set the SSH property correctly in the Azure portal:

![Screenshot 2024-06-25 170654](https://github.com/Azure/bicep-types-az/assets/22238280/a9a3ed37-ebd5-4f3c-befb-70ea6d13cf35)

### Bicep Repro

```
resource webApp 'Microsoft.Web/sites@2023-12-01' = {
name: 'appname'
location: location
identity: {
type: 'SystemAssigned'
}
kind: 'app,linux'
properties: {
siteConfig: [...]
sshEnabled: false //this gives a warning saying it is not a valid property, but it works!
}
}
```

### 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@2023-12-01 type definition and compare its SiteProperties schema with the Bicep repro. Verify how sshEnabled is represented by the Azure resource API, then update the definition so the repro accepts the property without BCP037; done means the warning is gone and the property remains deployable.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.