Azure / enterprise-azure-policy-as-code

Enterprise-ready Azure Policy-as-Code (PaC) solution (includes Az DevOps pipeline)
https://azure.github.io/enterprise-azure-policy-as-code/
MIT License
437 stars 243 forks source link

[Enable Azure Monitor for VMs & VMss] Role assignment when using your own User Assigned Identity located in the caf "management" Management Group #708

Closed JamesDLD closed 3 months ago

JamesDLD commented 4 months ago

Describe the bug The initiative policy "Enable Azure Monitor for Virtual Machine Scale Sets" should assign the needed role to the shared managed identity when the managed identity is in another subscription or management group than the role assignment scope.

To Reproduce We can use a share managed identity through the following parameters of the sub policy "[Preview]: Assign Built-In User-Assigned Managed Identity to Virtual Machine Scale Sets"

Expected behavior Assign the share managed identity to VM and VMss.

Screenshots image

EPAC Version 10.4.2 10.5.0

anwather commented 3 months ago

Apologies for the delay - but EPAC doesn't manage permission assignments for user assigned managed identities. In fact looking at the ARM based deployment for ALZ they don't assign permissions for the UAMI in there either.