You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Get started with Azure AD authentication by using the Azure portal
3
-
description: Learn how to use the Azure portal to access Azure Active Directory (Azure AD) authentication to consume the Azure Media Services API.
2
+
title: Get started with Azure AD authentication
3
+
description: Learn how to access Azure Active Directory (Azure AD) authentication to consume the Azure Media Services API.
4
4
services: media-services
5
5
documentationcenter: ''
6
6
author: Juliako
@@ -12,53 +12,65 @@ ms.workload: media
12
12
ms.tgt_pltfrm: na
13
13
ms.devlang: na
14
14
ms.topic: how-to
15
-
ms.date: 03/09/2020
15
+
ms.date: 03/15/2020
16
16
ms.author: juliako
17
17
---
18
-
# Use the Azure portal to get credentials to access Media Services API
18
+
# Get credentials to access Media Services API
19
19
20
20
When you use Azure AD authentication to access the Azure Media Services API, you have two authentication options:
21
21
22
-
-**Service principal authentication**. Authenticate a service. Applications that commonly use this authentication method are apps that run daemon services, middle-tier services, or scheduled jobs: web apps, function apps, logic apps, APIs, or a microservice.
23
-
-**User authentication**. Authenticate a person who is using the app to interact with Media Services resources. The interactive application should first prompt the user for credentials. An example is a management console app used by authorized users to monitor encoding jobs or live streaming.
22
+
-**Service principal authentication** (recommended)
24
23
25
-
This article shows you how to use the Azure portal to get credentials to access Media Services API.
24
+
Authenticate a service. Applications that commonly use this authentication method are apps that run daemon services, middle-tier services, or scheduled jobs: web apps, function apps, logic apps, APIs, or a microservice.
25
+
-**User authentication**
26
+
27
+
Authenticate a person who is using the app to interact with Media Services resources. The interactive application should first prompt the user for credentials. An example is a management console app used by authorized users to monitor encoding jobs or live streaming.
28
+
29
+
This article describes steps for getting credentials to access Media Services API. Choose from the following tabs.
26
30
27
31
## Prerequisites
28
32
29
33
- An Azure account. If you don't have an account, start with an [Azure free trial](https://azure.microsoft.com/pricing/free-trial/).
30
-
- A Media Services account. For more information, see [Create an Azure Media Services account by using the Azure portal](create-account-portal.md).
34
+
- A Media Services account. For more information, see [Create an Azure Media Services account by using the Azure portal](create-account-howto.md).
31
35
32
-
## API access
36
+
## The Azure portal
37
+
38
+
### API access
33
39
34
40
The **API access** page lets you select the authentication method you want to use to connect to the API. The page also provides the values you need to connect to the API.
35
41
36
42
1. In the [Azure portal](https://portal.azure.com/), select your Media Services account.
37
43
2. Select how to connect to the Media Services API.
38
44
3. Under **Connect to Media Services API**, select the Media Services API version you want to connect to (V3 is the latest version of the service).
39
45
40
-
## Service principal authentication (recommended)
46
+
###Service principal authentication (recommended)
41
47
42
48
Authenticates a service using an Azure Active Directory (Azure AD) app and secret. This is recommended for any middle-tier services calling to the Media Services API. Examples are Web Apps, Functions, Logic Apps, APIs, and microservices. This is the recommended authentication method.
43
49
44
-
### Manage your Azure AD app and secret
50
+
####Manage your Azure AD app and secret
45
51
46
52
The **Manage your AAD app and secret** section lets you select or create a new Azure AD app and generate a secret. For security purposes, the secret cannot be shown after the blade is closed. The application uses the application ID and secret for authentication to obtain a valid token for media services.
47
53
48
54
Make sure that you have sufficient permissions to register an application with your Azure AD tenant and to assign the application to a role in your Azure subscription. For more information, see [Required permissions](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal#required-permissions).
49
55
50
-
### Connect to Media Services API
56
+
####Connect to Media Services API
51
57
52
58
The **Connect to Media Services API** provides you with values that you use to connect your service principal application. You can get text values or copy the JSON or XML blocks.
53
59
54
-
## User authentication
60
+
###User authentication
55
61
56
62
This option could be used to authenticate an employee or member of an Azure Active Directory who is using an app to interact with Media Services resources. The interactive application should first prompt the user for the user's credentials. This authentication method should only be used for Management applications.
57
63
58
-
### Connect to Media Services API
64
+
####Connect to Media Services API
59
65
60
66
Copy your credentials to connect your user application from the **Connect to Media Services API** section. You can get text values or copy the JSON or XML blocks.
Copy file name to clipboardExpand all lines: includes/media-services-cli-instructions.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ ms.author: juliako
10
10
ms.custom: include file
11
11
---
12
12
13
-
## CLI Shell
13
+
## Use CLI Shell
14
14
15
15
It is recommended to use [Azure Cloud Shell](https://docs.microsoft.com/azure/cloud-shell/overview?view=azure-cli-latest) to execute CLI commands. **Cloud Shell** is a free, interactive shell that you can use to run the steps in this article. Common Azure tools are preinstalled and configured in Cloud Shell for you to use with your account. It provides the flexibility of choosing the shell experience that best suits the way you work. Linux users can opt for a Bash experience, while Windows users can opt for PowerShell.
16
16
@@ -38,7 +38,7 @@ Relative path to the file (all OS)
38
38
Absolute file path on Linux/Mac and Windows OS
39
39
40
40
*`@ "/usr/home/mytestfile.json"`
41
-
*`@"c:\tmp\user\mytestfile.json"`
41
+
*`@"c:\tmp\user\mytestfile.json"`
42
42
43
43
Use `{file}` if the command is asking for a path to the file. For example, `az ams transform create -a amsaccount -g resourceGroup -n custom --preset .\customPreset.json`. <br/>
44
44
Use `@{file}` if the command is going to load the specified file. For example, `az ams account-filter create -a amsaccount -g resourceGroup -n filterName --tracks @tracks.json`.
Copy file name to clipboardExpand all lines: includes/media-services-v3-cli-access-api-include.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ ms.author: juliako
10
10
ms.custom: include file
11
11
---
12
12
13
-
## Access the Media Services API
13
+
###Access the Media Services API
14
14
15
15
To connect to Azure Media Services APIs, you use the Azure AD service principal authentication. The following command creates an Azure AD application and attaches a service principal to the account. You should use the returned values to configure your application.
0 commit comments