Azure / Azure/bicep-types-az

[managedEnvironments]: "identity" property missing in type definition

Open
#2,162 2 comments 3 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.App/managedEnvironments

### Api Version

2024-03-01

### Issue Type

Missing property(s)

### Other Notes

_No response_

### Bicep Repro

```bicep
resource environmentIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
name: 'mgid-cae-identity-sample'
location: 'westeurope'
}

resource cae 'Microsoft.App/managedEnvironments@2024-03-01' = {
name: 'cae-identity-sample'
location: 'westeurope'
identity: {
type: 'UserAssigned'
userAssignedIdentities: {
'${environmentIdentity.id}': {}
}
}
properties: {
...
}
}
```
The `identity` assignment to the Container Apps Environment is giving me a warning which I have to disable with `#disable-next-line BCP187`:

> The property "identity" does not exist in the resource or type definition, although it might still be valid.

Following [the documentation](https://learn.microsoft.com/en-us/azure/templates/microsoft.app/2023-11-02-preview/managedenvironments?pivots=deployment-language-bicep) (where it shows `2023-11-02-preview` as `latest`, although I can deploy against version `2024-03-01` as in my sample) `identity` is available on the type and it does in fact deploy just fine.

### 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 inspecting the Microsoft.App managedEnvironments type definition for API version 2024-03-01 and compare it with the linked Azure documentation and the Bicep reproduction. Done means the identity property is represented for that resource version and the sample no longer requires #disable-next-line BCP187.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.