Feature Request: Missing Azure Policy Alias for identity.userAssignedIdentities on Microsoft.Web/sites
Description: We are implementing a security architecture that requires a 1:1 mapping between Web/Function Apps (and eventually other resources) and User Assigned Identities to ensure the idempotency of Infrastructure-as-Code (Bicep/ARM) deployments.
The Problem: We cannot use System Assigned Managed Identities because their Principal ID changes upon resource recreation. This breaks idempotent role assignments, leading to RoleAssignmentUpdateNotPermitted errors when the role assignment name (GUID) remains deterministic but the Principal ID is updated. We cannot use the System Assigned Managed Identity in the GUID in the Bicep Script as it is not known beforehand. The user managed identities also have their advantages in cleaning up dangling role assignments.
The Request: To enforce our "User Assigned Only" architecture via governance, we need to validate the specific Identity ID/Name attached to a resource. However, the Microsoft.Web provider (resource types sites and staticSites) does not currently expose a policy alias for the identity.userAssignedIdentities property.
We request that a policy alias (supporting the [*] operator) be added for identity.userAssignedIdentities on the Microsoft.Web/sites resource type, similar to the functionality already available for Microsoft.Compute/virtualMachines. This is necessary for maintaining idempotent, identity-based permissions in enterprise environments
Thanks in advance, best regards, Art