Skip to content

Latest commit

 

History

History

advanced-vod-workflow

services platforms author
media-services,functions,logic-app
dotnetcore
shigeyf

Media Services: Integrating Azure Media Services with Azure Functions & Azure Logic Apps

This project contains advanced VOD media workflow examples of using Azure Functions with Azure Media Services. The project includes several folders of sample Azure Functions for use with Azure Media Services that show workflows related to ingesting content directly from blob storage, encoding, and writing content back to blob storage.

This Media Services Functions example is based on AMS REST API v3 on Azure Functions v3.

Prerequisites for a sample Logic Apps deployments

1. Create an Azure Media Services account

Create a Media Services account in your subscription if don't have it already (follow this article).

2. Create a Service Principal

Create a Service Principal and save the password. It will be needed in step #4. To do so, go to the API tab in the account (follow this article).

3. Make sure the AMS streaming endpoint is started

To enable streaming, go to the Azure portal, select the Azure Media Services account which has been created, and start the default streaming endpoint.

4. Deploy the Azure functions

If not already done : fork the repo, deploy Azure Functions and select the "advanced-vod-workflow-functions" Project (IMPORTANT!)

Follow the guidelines in the git tutorial for details on how to fork the project and use Git properly with this project.

Note : if you never provided your GitHub account in the Azure portal before, the continous integration probably will probably fail and you won't see the functions. In that case, you need to setup it manually. Go to your azure functions deployment / Functions app settings / Configure continous integration. Select GitHub as a source and configure it to use your fork.

Alternatively, deploy the Azure Functions using Visual Studio.

Functions documentation

This page lists the functions available and describes the input and output parameters.