Skip to content

Commit af1ac8f

Browse files
authored
Merge pull request #107065 from Juliako/portal
Portal
2 parents 3e28068 + 0319edc commit af1ac8f

File tree

3 files changed

+128
-1
lines changed

3 files changed

+128
-1
lines changed

articles/media-services/latest/TOC.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,15 @@
206206
items:
207207
- name: Get started
208208
items:
209+
- name: Create an account - portal
210+
href: create-account-portal.md
209211
- name: Create an account - CLI
210212
href: create-account-cli-how-to.md
211213
displayName: storage
212214
- name: Reset the account credentials - CLI
213-
href: cli-reset-account-credentials.md
215+
href: cli-reset-account-credentials.md
216+
- name: Access APIs - portal
217+
href: access-api-portal.md
214218
- name: Access APIs - CLI
215219
href: access-api-cli-how-to.md
216220
- name: Scale Media Reserved Units - CLI
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
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.
4+
services: media-services
5+
documentationcenter: ''
6+
author: Juliako
7+
manager: femila
8+
editor: ''
9+
10+
ms.service: media-services
11+
ms.workload: media
12+
ms.tgt_pltfrm: na
13+
ms.devlang: na
14+
ms.topic: how-to
15+
ms.date: 03/09/2020
16+
ms.author: juliako
17+
---
18+
# Use the Azure portal to get credentials to access Media Services API
19+
20+
When you use Azure AD authentication to access the Azure Media Services API, you have two authentication options:
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.
24+
25+
This article shows you how to use the Azure portal to get credentials to access Media Services API.
26+
27+
## Prerequisites
28+
29+
- 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).
31+
32+
## API access
33+
34+
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+
36+
1. In the [Azure portal](https://portal.azure.com/), select your Media Services account.
37+
2. Select how to connect to the Media Services API.
38+
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+
40+
## Service principal authentication (recommended)
41+
42+
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+
44+
### Manage your Azure AD app and secret
45+
46+
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+
48+
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+
50+
### Connect to Media Services API
51+
52+
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+
54+
## User authentication
55+
56+
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+
58+
### Connect to Media Services API
59+
60+
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.
61+
62+
## Next steps
63+
64+
[Tutorial: Upload, encode, and stream videos with Media Services v3](stream-files-tutorial-with-api.md).
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
title: Create an Azure Media Services account with the Azure portal
3+
description: This tutorial walks you through the steps of creating an Azure Media Services account with the Azure portal.
4+
services: media-services
5+
documentationcenter: ''
6+
author: Juliako
7+
manager: femila
8+
editor: ''
9+
10+
ms.service: media-services
11+
ms.workload: media
12+
ms.tgt_pltfrm: na
13+
ms.devlang: na
14+
ms.topic: how-to
15+
ms.date: 03/09/2020
16+
ms.author: juliako
17+
18+
---
19+
# Use the Azure portal to create a Media Services account
20+
21+
The Azure portal provides a way to quickly create an Azure Media Services account. You can use your account to access Media Services that enable you to store, encrypt, encode, manage, and stream media content in Azure.
22+
23+
This article shows how to create a Media Services account using the Azure portal.
24+
25+
## Prerequisites
26+
27+
To complete this tutorial, you need an Azure account. For details, see [Azure Free Trial](https://azure.microsoft.com/pricing/free-trial/).
28+
29+
## Create a Media Services account
30+
31+
1. Sign in at the [Azure portal](https://portal.azure.com/).
32+
1. Click **+Create a resource** > **Media** > **Media Services**.
33+
1. In **CREATE MEDIA SERVICES ACCOUNT** enter required values.
34+
35+
| Name | Description |
36+
| ---|---|
37+
|**Account Name**|Enter the name of the new Media Services account. A Media Services account name is all lowercase letters or numbers with no spaces, and is 3 to 24 characters in length.|
38+
|**Subscription**|If you have more than one subscription, select one from the list of Azure subscriptions that you have access to.|
39+
|**Resource Group**|Select the new or existing resource. A resource group is a collection of resources that share lifecycle, permissions, and policies. Learn more [here](../../azure-resource-manager/management/overview.md#resource-groups).|
40+
|**Location**|Select the geographic region that will be used to store the media and metadata records for your Media Services account. This region will be used to process and stream your media. Only the available Media Services regions appear in the drop-down list box. |
41+
|**Storage Account**|Select a storage account to provide blob storage of the media content from your Media Services account. You can select an existing storage account in the same geographic region as your Media Services account, or you can create a new storage account. A new storage account is created in the same region. The rules for storage account names are the same as for Media Services accounts.<br/><br/>You must have one **Primary** storage account and you can have any number of **Secondary** storage accounts associated with your Media Services account. You can use the Azure portal to add secondary storage accounts. For more information, see [Azure Storage accounts with Azure Media Services accounts](storage-account-concept.md).<br/><br/>The Media Services account and all associated storage accounts must be in the same Azure subscription. It is strongly recommended to use storage accounts in the same location as the Media Services account to avoid additional latency and data egress costs.|
42+
43+
1. Select **Pin to dashboard** to see the progress of the account deployment.
44+
1. Click **Create** at the bottom of the form.
45+
46+
Once the account is successfully created, overview page loads. In the streaming endpoint table, the account will have a default streaming endpoint in the **Stopped** state.
47+
48+
When your Media Services account is created a **default** streaming endpoint is added to your account in the **Stopped** state. To start streaming your content and take advantage of [dynamic packaging](dynamic-packaging-overview.md) and [dynamic encryption](content-protection-overview.md), the streaming endpoint from which you want to stream content has to be in the **Running** state.
49+
50+
> [!NOTE]
51+
> You can use the [Azure portal](https://portal.azure.com/) to manage v3 [Live Events](live-events-outputs-concept.md), view v3 [Assets](assets-concept.md), get info about accessing APIs. For all other management tasks (for example, Transforms and Jobs), use the [REST API](https://aka.ms/ams-v3-rest-ref), [CLI](https://aka.ms/ams-v3-cli-ref), or one of the supported [SDKs](media-services-apis-overview.md#sdks).
52+
53+
## Next steps
54+
55+
If you plan to access Media Services API programmatically, see [Access the Azure Media Services API with Azure AD authentication](access-api-portal.md).
56+
57+
## Provide feedback
58+
[!INCLUDE [media-services-user-voice-include](../../../includes/media-services-user-voice-include.md)]
59+

0 commit comments

Comments
 (0)