Azure Event Grid not sending events to webhook - azure

I have an Azure media services account for which I want to be notified via webhook when encoding jobs are finished. I'm using v3 of the Media Service API.
I've added an event subscription to this account and have sucessfully validated the webhook endpoint.
Here's where the problem comes in. If I do something that should trigger an event(start an encoding job, create an asset, etc.) on the Azure Portal nothing happens event wise. Looking at the event subscription on the Portal shows no events detected as well.
Is this an Azure bug or am I missing something?

As it turns out, actions done through the Portal or v2 of the API does not trigger Events from Event Grid.
I used Azure Media Services Explorer to test out my webhooks instead.

Related

Subscribe to External Azure Web PubSub Service from Azure

I have an external vendor who would like me to subscribe to their Azure Web PubSub service from which I will receive notifications when a certain event occurs. What is the best way to subscribe to these events from my own Azure environment? I am familiar with handling HTTP requests from Azure Functions and Azure Logic Apps, but this is my first time using Websockets within Azure (and I am new to Azure itself).
Edit: Also, I have read the documentation on Azure Web PubSub and have followed along with some of the tutorials. Most either show how to subscribe from a C# console application or a web app, but what if I want to kick off a workflow in Azure when the notification is received?
subscribe to their Azure Web PubSub service from which I will receive notifications when a certain event occurs
Looks like you will be acting as the event handler upstream role. You can have an app server running and listen to the CloudEvents HTTP request from Azure Web PubSub service. https://learn.microsoft.com/en-us/azure/azure-web-pubsub/reference-cloud-events
Here is a sample about handling events: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/tutorial-build-chat?tabs=csharp#handle-events

Azure Event Grid Webhook validation handshake

I would like to know if it is possible to have Azure Web Site (ASP.NET Core) and Azure Event Grid with Webhook to the Azure Web Site in the same ARM Template?
For the first time, there is no possibility to validate Webhook.
Of course, I can split it into the two ARM Templates and deploy 1st ARM with the Application, deploy the Application and add the Event Grid Webhook.
Is it some other workaround here? I can use Event Grid Schema or Cloud Events Schema.
another workaround can be used to create an event subscription with some destination resource handler (for instance: storage queue) and then updating for your webhook handler.

Azure Policy - Setting up Alerts using Logic app

Is it possible to integrate the Azure Policy with Logic App for configuring Alerts and sending emails, when a Policy is non compliant and the service/resource created against it so that logic app gets triggered.
At the moment, we allow for alerts from Activity log. The log logic is different from new services that are non-compliant and when we do our periodic scan. We log when we do the evaluation and a resource is non-compliant. These alerts are subscription based.

Azure DevOps Custom ServiceHook

I am looking for a way to send a custom HTTP POST on service hook action. Kind of like the default WebHook functionality but with a customised body.
Is there a way to link a custom action to the consumer event?
You can add some proxy like azure function that will reformat your message and if need call Azure DevOps rest api and also get more information, and after reformatting message you send it to final consumer. You can use logic app also for that.
You can use azure logic app as suggested by #Janusz Nowak to send a custom http post on the event in azure devops.
You can check out Quickstart: Create your first workflow by using Azure Logic Apps - Azure portal.
After the logic app is created in your azure portal. In the Logic app designer page choose the Blank Logic App in templates.
In the search box type in azure devops and select a trigger event in azure devops.
Then you will be prompted to authorize the logic app to connect to your azure devops.
When you complete configuring your organization and project in the event trigger. Click ** + New Step** to add a HTTP action
You can customize your Http Request in the Http action.

setting alert on notification hub in azure classical portal

I am the co-admin of a subscription in Microsoft Azure which contains a notification hub. I want to set alerts on the various error metrics of the notification hub. However, I can't find a way to set alerts in the classical portal and these error metrics are not visible in the new portal. When I clicked on the Settings tab in the classical portal, the page which opened up didn't have any button for setting alerts.
Has the alert support been taken off the azure classical portal?
I afraid that it is not possible (i have tried to find that info as well) for a moment. For alerting, you should use Azure Management Services (click on the Operation Logs) and there is no Notification Hub in the drop-down menu of the supported services.
There is the FAQ stating that there is no alerts for NH out-of-the-box, but the third-party services may apply.
If 3rd party services are not the option, you may implement your own functionality - NH provides API and you may notify your team if something happened using that REST API.

Resources