Azure Media Services: How to Generate Primary Verification Key for DRM License Configuration

Roshan Tolwani 26 Reputation points

Hello All,

I wanted to know if there is any standard way to generate Primary Verification Key(symmetric key) which is used for token validation in Azure Media Services DRM License Configuration under Content Key Policies.

Is there any C# code that we can use to generate the same?

Azure Media Services
Azure Media Services
A group of Azure services that includes encoding, format conversion, on-demand streaming, content protection, and live streaming services.
302 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,206 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 15,606 Reputation points

    Hi @Roshan Tolwani ,

    Thanks for the question.

    You can do this via the Azure portal. Please follow the steps in this document: Configure content protection policies by using the Azure portal and here is a .NET example: Create ContentKeys with .NET

    "Media Services supports multiple ways of authenticating users who make key or license requests. You must configure the content key authorization policy. Your client then must meet the policy before the key/license can be delivered to it. The content key authorization policy can have one or more authorization restrictions, either open or token restrictions."

    Hope that helps. Please let us know if you have further questions



    --If the reply is helpful, please Upvote and Accept as answer--