Authorize API connection using Azure CLI

Алексей Игоревич 121 Reputation points
2020-12-21T12:21:42.297+00:00

Hello,
I have a few API connectors (Office 365 and PowerBI) in my Logic App. How do i can Authorize this account on this API Connectors using Azure CLI?

49978-capture5.png

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,805 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,041 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pramod Valavala 20,591 Reputation points Microsoft Employee
    2020-12-22T06:00:19.637+00:00

    Since Authorize here requires user credentials, that best you could do is to fetch the consent URLs which would have to be opened by one who has the required credentials. The docs mention a couple of way to work with this requirement.

    While there is no ready-to-use command in Azure CLI, there is an API Operation - microsoft.web/connections/listconsentlinks/action (search for listconsentlinks in this doc) that returns the consent links for an API Connection. This API is used in the PowerShell Sample linked in the docs.

    You could use the returned URLs from Azure CLI and open the browser to complete the authorize flow.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful