ApiConnectionDefinitionProperties: warning BCP089: The property "parameterValueSet" is not allowed on objects of type "ApiConnectionDefinitionProperties".
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 44
- Avg merge
- 18h 53m
- Merged PRs (30d)
- 29
Description
### Resource Type
Microsoft.Web/connections
### Api Version
2016-06-01
### Issue Type
Other
### Other Notes
Both parameterValueSet and parameterValueType: 'Alternative' seem to be allowed.
Mentioned here:
> @JeroenvdBurg , many thanks, that solved the problem! As you have indicated and I agree, code can be further improved. I wanted something quick, dirty and _working_ before making adjustments.
>
>
>
> @alex-frankel , agreed it's related yet different. I am not sure who in MSFT should be documenting these details. While @JeroenvdBurg approach works, IMO it's not something we should be doing - this should be well documented for each Microsoft.Web/connections resource.
>
>
>
> Btw, for storage account, here is correct JSON payload
>
>
>
> parameterValueSet: {
>
> name: 'managedIdentityAuth'
>
> values: {}
>
> }
_Originally posted by @sjuratov in [#1990](https://github.com/Azure/bicep-types-az/issues/1990#issuecomment-1843051004)_
```
C:\__w\1\s\.deployment\Deployment\modules\safefly\safeflySchemaLogicApp.bicep(79,5): warning BCP089: The property "parameterValueSet" is not allowed on objects of type "ApiConnectionDefinitionProperties". Did you mean "parameterValues"? [C:\__w\1\s\.deployment\Deployment\Deployment.csproj]
##[warning].deployment\Deployment\modules\safefly\safeflySchemaLogicApp.bicep(95,5): Warning BCP089: The property "parameterValueSet" is not allowed on objects of type "ApiConnectionDefinitionProperties". Did you mean "parameterValues"?
```
### Bicep Repro
resource connectionAzureTables 'Microsoft.Web/connections@2016-06-01' = {
name: '${prefix}-con-azuretables-${locationShortName}'
location: location
properties: {
displayName: 'Azure Table Connection'
api: {
id: subscriptionResourceId('Microsoft.Web/locations/managedApis', location, 'azuretables')
}
// undocumented values required to use managed identity for storage account connection
parameterValueSet: {
name: 'managedIdentityAuth'
values: {}
}
}
}
### 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 type definition for Microsoft.Web/connections@2016-06-01 and compare ApiConnectionDefinitionProperties with the Bicep repro. Confirm that parameterValueSet, including the managedIdentityAuth example, and parameterValueType: 'Alternative' are represented so the repro no longer produces BCP089.
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
- 45/100