Azure / Azure/bicep-types-az

[Microsoft.Web/connections]: parameterValueType property not supported for system assigned managed identities

Open
#2,197 2 comments 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/connections

### Api Version

2016-06-01

### Issue Type

Missing property(s)

### Other Notes

After creating a logic app with a system assigned managed identity and an API connector to azure container instances I received the error:

> The workflow connection parameter '' is not valid. The API connection '' is not configured to support managed identity.

In order to use a system assigned managed identity the `parameterValueType` property is required on the api connection:

```
resource connection 'Microsoft.Web/connections@2016-06-01' = {
...
properties: {
...
parameterValueType: 'Alternative'
api: {
id: ...
}
}
}
```

However the following warning is reported:

> The property "parameterValueType" is not allowed on objects of type "ApiConnectionDefinitionProperties"

This can then be used as a parameter on a `Microsoft.Logic/workflows` resource using a managed identity in its `connectionProperties`:

```
parameters: {
'$connections': {
value: {
myConnection: {
id: ...
connectionId: ...
connectionProperties: {
authentication: {
type: 'ManagedServiceIdentity'
}
}
}
}
}
}
```

### Bicep Repro

_No response_

### 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/connections type definition for API version 2016-06-01 and trace how ApiConnectionDefinitionProperties is represented. Add support for parameterValueType so the shown managed-identity connection is accepted without a warning, then run the relevant type-validation checks if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript
Domain
cloud, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.