다음을 통해 공유


Azure Step-by-Step: How to construct Service Principal

Introduction

If you have Azure Stack which  uses Azure AD as the identity store, you can create a service principal using the same steps as in Azure, using the Azure portal.Follow the below instructions to create a service principal for your application

Steps

1. Login to Azure portal

Sign in to your Azure Account through the Azure portal.

2. New application registration.

Select Azure Active Directory > App registrations > + New application registration.

Provide a name and URL for the application. Select either Web app / API for the type of application. After setting the values, select Create.

  

3. Get Client Id, Client Secret and Resource

To use this Service Principal you would the Client ID and Authentication Key

From App registrations in Azure Active Directory, select your application.

Copy the Application ID and store it. The applications in the sample applications use Client_id when referring to the Application ID.

To generate an authentication key, select Settings –> Keys.

Provide a description of the key, and a duration for the key. When done, select Save. The Key value will be used as Client_Secret later on

 

Click on properties –> Copy App ID URI. This value will be used as Resource later.

4. Import and Deploy the Azure API Gateway API