How to create remediation tasks ( with deploy if not exists) effect . I have contributor ,resource policy contributor . requirement is to create remediation task to push Kubernetes events to eventhub. facing permissions issue

Vignesh Kumar R 20 Reputation points
2024-02-15T12:06:21.6066667+00:00

resource identity does not have the necessary permissions to create deployment - Policy deployment fails when I run remediation task

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,877 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
799 questions
{count} votes

Accepted answer
  1. SwathiDhanwada-MSFT 17,726 Reputation points
    2024-02-15T13:23:24.98+00:00

    @Vignesh Kumar R When Azure Policy starts a template deployment when evaluating deployIfNotExists policies or modifies a resource when evaluating modify policies, it does so using a managed identity that is associated with the policy assignment. Policy assignments use managed identities for Azure resource authorization. You can use either a system-assigned managed identity that is created by the policy service or a user-assigned identity provided by the user. The managed identity needs to be assigned the minimum role-based access control (RBAC) role(s) required to remediate resources.

    Kindly make sure you have provided necessary permissions to the managed identity that is associated with the policy assignment. For more information, you can refer this document.


0 additional answers

Sort by: Most helpful