Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApiConnectionDefinitionProperties: warning BCP089: The property "parameterValueSet" is not allowed on objects of type "ApiConnectionDefinitionProperties". #2386

Open
1 task done
dciborow opened this issue Dec 8, 2024 · 0 comments

Comments

@dciborow
Copy link

dciborow commented Dec 8, 2024

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

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

  • I have read the troubleshooting guide and looked for duplicates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant