Getting started with Microsoft Azure Media Service


In this blog we shall learn how to get started with Microsoft Azure Media service using Microsoft Azure portal.

For novice Cloud developers, and all other software consulting company or teams associated with Media & Advertising domain, this blog will help to learn how to leverage the capabilities of Microsoft public cloud, Azure into application or product.


  •      Microsoft Azure Subscription. (You can have your free trial subscription)
  •     Zeal to Learn

Quick Overview

Microsoft Azure Media service is a solution offering for enabling uploading, encoding processing or streaming live Video or Audio content straight from cloud.

It can be used at,

·         Broadcast

o   Over the TV

o   On demand Video

o   Linear programming 

·         Events

o   Live Sports matches

o   Streaming Breaking News

o   Musical Concerts 

·         Enterprise

o   Corporate Training

o   Product knowledge sharing platform

o   Business conferences

o   Corporate webinars

o   Keynote over Company Websites

Media service associates storage account in the same region which serves as container for storing all video, audio files along with files metadata as an asset in the form of Blobs.

Getting Started

Create Azure Media Service

Open Microsoft Azure Portal in browser.

Click on New => Web + Mobile => Media Service


Enter ‘AMS in search box.

Enter below mandatory details for creating Azure Media Service,

  • Account name: Enter name for your Media service account. Should be in lowercase only.
  • Subscription: Microsoft Azure Subscription.
  • Resource group: Media service is a part of Azure services, it needs to be deployed under Resource group. You can create new or select from existing resource group.
  • Location: Location where service will be deployed. 

  • Storage: Here you need to create Storage service wherein all media files be stored. As of writing it only allows storage with general purpose and no premium.

When you click on Storage tab, it will try to list storage account associated to Location selected above while creating Media service. If it not exist, it will allow to create new.

Again, for creating Storage Account, enter following mandatory details,

  • Name: Name of Storage Account. It should globally unique. For this blog we have provided name as ‘learnamsstorage
  • Performance: As mentioned earlier, premium storage is not supported, and is disabled. For this blog, we have selected as Standard.
  • Replication: For Media service, only LRS, GRS and RA-GRS are supported. For this blog we will go with Locally-redundant storage ( LRS)

For this blog, for creating Azure Media Service, we have entered details as follows,

  • Account name: Given name as learnams
  • Subscription: Microsoft Azure Subscription – Free Trial
  • Resource group: Created new resource group, LearnWithDemo.
  • Location: as West US.
  • Storage: Created in above steps, learnamsstorage. 
Pin it to dashboard. (Best practice)
Click on Create.

Track service deployment status on dashboard

Navigate to Resource Group.

Click on newly created resource group.

Azure storage account and Azure Media service account are deployed and listed under Resource group section.

Click on Azure Media service => Navigate to Overview section

All service related details like API endpoint, Storage associated with media services and other related information can be seen here.

When media service account is created, streaming endpoint is being added to your account.

By default, this streaming endpoint is with status as ‘Stopped’

If the streaming endpoint is with status as ‘Running’, we can start with streaming media content.

We can view these streaming endpoints by navigating to,

Left pane => under Media services =>Streaming endpoints

We can manage our Azure media service account like,

   a)  Connecting Azure Media Services API

Navigate to API access from left navigation blade,

          There are two ways of connecting AMS APIs,

            1)   Connecting with user authentication (Click as highlighted in image below)

          All the required artifacts for connecting via user authentication will be available here.

               Click the highlighted link in below image to learn more about this option.

           2)      Connecting with user Service Principal (Click as highlighted in image below)


     All the required artifacts for connecting via Service principle will be available here.

Click the highlighted link in below image to learn more about this option.

     b)    Uploading Videos to Media Services Account

Here we upload files to an asset. Files can be audio, video, text, image along with metadata of this files.

These uploaded files are stored securely in cloud, and are used further for streaming and processing. 

For processing files in Azure media service there has max size limit.

For more details, read Media Services quotas and limitations.


For uploading files to Azure Media Service,

Navigate in Azure Portal to,

Left blade under More services =>Assets

Click on Upload at top command bar.

This will open a bladeallowing us to browse files need to be uploaded.

Also, it comes along with three links mentioning details for,

  • List of supported input formats.·
  • File size limitations for encoding.·
  • List of supported characters for file name.

Click on File upload =>browse icon for selecting video file to be uploaded, as shown in below image.

This will open up a window with all files in your local computer.

Select video file with supported extension, file size and name.

Once file is selected, it will start the uploading.

We can see the selected file name along with uploading status below File upload text box.

Once done with uploading, file, now an asset is listed under,

Media Services =>Asset

We can also view this video, an asset, in Storage account we created while creating Azure media service.

Navigate to Resource Group =>Storage Account =>Blob


In this blog, we learned how to get started with Microsoft Azure Media Service. Also, about how to upload videos to an Asset on cloud and make it ready for further streaming. Would recommend exploring more with Azure Media Service.

Thank You!

You may like to learn on What is Azure Media Services? by Spanish Point Tech

You may like to go through a Useful Guide to Progressive Web Applications