Skip to content

Latest commit

 

History

History
37 lines (20 loc) · 2.7 KB

monitoring.md

File metadata and controls

37 lines (20 loc) · 2.7 KB

Ravnur Media Services Event Grid events

Ravnur Media Services events allow applications to react to different events (for example, the job state change event). It is achieved without the need for complicated code - events are pushed through Azure Event Grid to event handlers such as Azure Functions, Azure Logic Apps, or even to your own Webhook.

The Ravnur Media Services event schemas are fully compatible with Azure Media Services and require minimal migration effort from the user side. The only required step is to migrate existing Event Grid topic subscriptions from the AMS Event Grid system topic to the RMS Event Grid topic. No changes to the application code are required.

Event Grid schemas for Ravnur Media Services events

Ravnur Media Services supports all job-related event types that Azure Media Services supports. The event type names and data are exactly the same. If you have event handlers that process some or all of the job-related AMS events, you don't need to make changes to your application code.

The detailed list of the job-related events, together with schema examples, can be found in the AMS Event Grid schemas documentation

Locate the Event Grid Topic

  1. Go to the resource group created as part of the Ravnur Media Services deployment
  2. Under the list of resources, go to the “Event Grid Topic” resource

The name of the Event Grid Topic will be unique for your specific deployment, however, it always follows a pattern "eg-topic-<unique-suffix>"

Event Grid topic resource in the RMS deployment resource group.png

Create Event Grid Topic Subscription

If you are familiar with the subscription creation in the AMS system topic, this process is no different.

  1. Navigate to the Event Grid Topic
  2. On the Event Grid topic page, select + Event Subscription
  3. Fill the details for your event subscription and click Create

How to create new Event Subscription for Event Grid Topic.png

You can find more details about Subscription creation and example message endpoint in the official documentation for Event Grid.

Receive Event Grid topic events in your subscription

Once you set up the subscription for an Event Grid Topic, use the RMS API to create an encoding job. You will able to monitor the job status using events submitted to your message handlers.