Azure / Azure/bicep-types-az

[Microsoft.ManagedIdentity/userAssignedIdentities]: Properties incorrectly flagged as read-only for User Assigned Managed Identities

Open
#2,571 0 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.ManagedIdentity/userAssignedIdentities

### Api Version

2025-01-31-preview

### Issue Type

Property(s) inaccurately marked read-only/write-only

### Other Notes

When I try to change the properties of my User Assigned Managed Identities (UAMI), I get the following warning:

`The property "properties" is read-only. Expressions cannot be assigned to read-only properties. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.bicep[BCP073](https://aka.ms/bicep/core-diagnostics#BCP073)`

I know System Assigned Managed Identities (SAMI) are read-only but you _can_ modify UAMI properties. Happens across multiple API versions, not just the one I specified.

### Bicep Repro

```bicep
resource UAMIName 'Microsoft.ManagedIdentity/userAssignedIdentities@2025-01-31-preview' = {
location: 'westus3'
tags: {}
name: 'UAMIName'
properties: {
isolationScope: 'Regional'
}
}
```

### Confirm

- [x] I have read the troubleshooting guide and looked for duplicates.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the warning with the supplied Bicep resource using Microsoft.ManagedIdentity/userAssignedIdentities@2025-01-31-preview, then inspect the generated type definition for the properties declaration and compare it with the UAMI API behavior described. Done means the UAMI properties can be assigned without the read-only diagnostic across the affected API versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, devtools
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.