Azure Monitor Logs API connection

Vinoth Jeyaraman 1 Reputation point
2021-01-22T11:44:44.363+00:00

I have a query regarding azure monitor logs CONNECTOR (to be used in logic apps).
As we are using Azure monitor logs connector, we need to use corresponding API connection and authorize it. Will the connection expire after some days that we have to reauthorize? Or is the authorization one-time that once authorized, that it can be used indefinitely?

I checked in a [public doc][1] which says for office 365, the connection once authorized can be used indefinitely.

Connections can access the target service or system for as long as that service or system allows. For services that use Azure AD OAuth connections, such as Office 365 and Dynamics, Azure Logic Apps refreshes access tokens indefinitely. Other services might have limits on how long Azure Logic Apps can use a token without refreshing.

I couldn't find related info for azure monitor logs API connection. Can this API connection be authorized once and used indefinitely?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,645 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Stanislav Zhelyazkov 28,186 Reputation points MVP Volunteer Moderator
    2021-01-22T12:44:23.16+00:00

    Hi
    As far as I can see in the official docs the connection requires client ID and client secret. This means that you need to create Service principal with secret. Secrets have expiration date that you set during the creation of service principal. This means that when the expiration date passes you will need to create new secret for the same app and replace the secret in the connection.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  2. Vinoth Jeyaraman 1 Reputation point Microsoft Employee
    2021-01-24T07:03:52.567+00:00

    Hi Stan,

    Thanks for the response.
    When I tried to use the Azure Monitor logs connector, I dint create any such credential fields. I was just prompted to log in with my account. Once login is done, I was able to use the connector and get the desired results. It was just a straight forward sign-in (no expiry date coming into picture)

    My question is how long the authorization of my account to use this specific connector be valid? Will I be asked to re-authorize the connection after some days?

    Thanks


  3. tushar 1 Reputation point
    2021-02-08T07:08:34.483+00:00

    hey, i wanted to connect using managed identity but i am getting an error ("Failed to get valid request parameters. Authorization Error\r\nclientRequestId: e373b097-7d7c-42e6-a18a-92a0f8784f8e").

    what can i do please help

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.