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

Roshan Tolwani 31 Reputation points
2022-02-08T12:42:47.22+00:00

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.
315 questions
C#
C#
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,648 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 17,456 Reputation points
    2022-02-09T22:31:56.977+00:00

    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

    Thanks,
    Grace

    ------------------------------------------------------------------------------------------------------------------------------

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