How i can create, change and Authorized user account in Azure API Connection using Azure CLI ?

Алексей Игоревич 121 Reputation points
2020-12-17T14:30:35.297+00:00

Hi,

I write some command in Azure CLI and i get user account:
$usern = Read-host ('Enter User name in format (******@mycompany.com)')

This account using my script for deploy template, and create Azure API connections.
But, how do i can Authorize this user in Azure CLI, or 49139-capture5.pnghow can I give the user the option to enter their credentials and how can I authorize the received data in the connector using the Azure CLI?

Thank you!

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,447 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JayaC-MSFT 5,606 Reputation points
    2020-12-30T11:37:41.837+00:00

    Hello @Алексей Игоревич , To authorize any OAuth connections to generate valid access tokens for authenticating your credentials. You can use a script that provides consent for each OAuth connection. Here's an example script in GitHub in the LogicAppConnectionAuth project- you can check this as reference.

    You use an Azure Active Directory (Azure AD) service principal instead to authorize connections. For Azure CLI, please refer to this.

    Please let me know if this 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.