Authenticate Azure Monitor logs connector in Logic App with managed identity

Azure Updates

Discussionpowered by zap.ms

Published

Sep 18, 2023

Status

Launched

Timeline

  • September 2023
    General Availability

Product

Application Insights
Azure Monitor
Log Analytics

Tag

Compliance
Features
Security

Category

DevOps
Management and governance

Description

Managed identities in Azure lets you authenticate to any resource that supports Azure AD authentication, including your own applications. When you enable managed identity authentication in Logic App and grant it permissions in Log Analytics workspace or Application Insights component, you can query data without needing to provide credentials, secrets, or Azure AD tokens, for Azure Monitor Logs connector authentication.

Steps to enable managed identity for Azure Monitor Logs. Example is using System-assigned managed identity, but can equally be used with User-assigned managed identity.

  1. In the Azure portal, search and access your Logic App. Select Identity on the left navigation pane, and toggle on managed identity.
  2. In the Azure portal, search and access the Subscription hosting your Analytics workspaces or Application Insights components. Select Access control (IAM) on left navigation pane and add Reader role assignment with the Logic App managed identity as a member. This step enable listing your resources in the Azure Monitor Logs connector during configuration.
  3. In the Azure portal, search and access your Log Analytics workspace. Select Access control (IAM) on the left navigation pane and add Log Analytics Reader role assignment with the the Logic App managed identity as a member.
  4. Return to your Logic App, select Designer on the left navigation pane. In Azure Monitor Logs connector Connection, choose Logic App Managed Identity authentication type in dropdown.

       Picture1

 

See Azure Monitor Logs connector, Authenticate to Azure resources with managed identities in Azure Logic Apps, Azure AD authentication