Azure / Azure/bicep-types-az

Microsoft.Web/sites/extensions: onedeploy properties are valid

Open
#2,249 1 comment 1 reaction 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/extensions

### Api Version

2023-12-01

### Issue Type

Missing property(s)

### Other Notes

When deploying code to an app service using onedeploy, bicep insists that properties are not valid on the resource type: `The property "properties" does not exist in the resource or type definition, although it might still be valid. If this is an inaccuracy in the documentation, please report it to the Bicep Team.`

This is in line with the [current docs for the resource provider](https://learn.microsoft.com/en-us/azure/templates/microsoft.web/sites/extensions-onedeploy?pivots=deployment-language-bicep
). However, this is not accurate. You need to provide properties in order to make the deployment work (see bicep repro)

### Bicep Repro

```
resource appService 'Microsoft.Web/sites@2023-12-01' = {
name: 'myAppService'
location: resourceGroup().location
properties: {
serverFarmId: 'myHostingPlanId'
siteConfig: {
netFrameworkVersion: 'v8.0'
alwaysOn: true
}
}
}

resource deployCode 'Microsoft.Web/sites/extensions@2023-12-01' = {
name: 'onedeploy'
parent: appService
properties: {
packageUri: 'myZipPath'
type: 'zip'
}
}
```

### 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/extensions resource type at API version 2023-12-01 and compare its Bicep definition with the linked provider documentation and the repro. Verify how the onedeploy extension represents packageUri and type, then confirm that a resource using properties is accepted and deploys successfully.

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.