services | platforms | author |
---|---|---|
media-services,functions,logic-app |
dotnetcore |
shigeyf |
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.
Create a Media Services account in your subscription if don't have it already (follow this article).
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).
To enable streaming, go to the Azure portal, select the Azure Media Services account which has been created, and start the default streaming endpoint.
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.
This page lists the functions available and describes the input and output parameters.