Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Warning
Azure Media Services will be retired June 30th, 2024. For more information, see the AMS Retirement Guide.
Azure Media Services v3 emits events on Azure Event Grid. You can subscribe to events in many ways and store them in data stores. In this tutorial, you will subscribe to Media Services events using a Log App Flow. The Logic App will be triggered for each event and store the body of the event in Azure Log Analytics. Once the events are in Azure Log Analytics, you can use other Azure services to create a dashboard, monitor, and alert on these events, though we won't be covering that in this tutorial.
You will learn how to:
If you don’t have an Azure subscription, create a free account before you begin.
Now that you are subscribed to the event(s), create an action.
body
value from "@triggerBody()?['topic']"
to "@{triggerBody()}"
. This is for parsing the entire message to Log Analytics.Log-Type
from "@triggerBody()?['topic']"
to "@replace(triggerBody()?['eventType'],'.','')"
. (This will replace "." as these are not allowed in Log Analytics Log Names.)Once you have the Logic App created, create a live event and start a live stream with your on-premises live encoder. If you haven't set up a live event for Media Services before, try the OBS Quickstart
With the live stream, Azure Media Services is emitting various events that are triggering the Logic App flow. To verify, navigate to the Logic App and determine if there are any triggers being fired by the events from Media Services.
MicrosoftMediaLiveEventEncoderConnected
event shows that it was captured as well as the parsed body. This is what is pushed to the Azure Log Analytics Workspace.Navigate to Log Analytics Workspace you created earlier.
Select Logs.
Close the Example queries popup.
There will be a Custom Logs listing. Select the down arrow to expand it. There you will see the event name MicrosoftMediaLiveEventEncoderConnected
.
Select the event name to expand it.
When you select the "eye" icon, it will show a preview of the query result.
Select See in query editor and then select the item under TimeGenerated UTC listing to expand it and view the raw data.
If you don't want to continue to use the resources you created during this tutorial, make sure you delete all of the resources in the resource group or you will continue to be charged.
You can contact Media Services with questions or follow our updates by one of the following methods:
azure-media-services
.Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in