Send email notification when new work item created in Azure DevOps - azure

I have a requirement like, send an email notification with work item id when new work item created in Azure DevOps.
Is it possible to configure a notification with new work item id?

User ADO service hooks: https://learn.microsoft.com/en-us/azure/devops/extend/develop/add-service-hook?view=azure-devops
Search through available list and there you will see possible actions to react on. API hooks allows you to receive data based on Boards changes (e.g. Task status change etc).

Related

How to have multiple approval areas in Azure Logic Apps?

In Azure Logic Apps, there is an action for Send Approval Email under Office 365 Outlook.
I want to have multiple approval options in the same email. Is there a way to do it?
I tried looping over and sending emails but that sends a new email every time with option to approve.
Currently, this is not possible in logic apps. You can send only 1 approval from logic apps. However, if it is must to use an approval connector you can build a logic app where you can send multiple emails and track the options through Storage account or you can simply use a send email connector and get the replies from users. Below is an alternative approach if it is must to use an approval connector from logic apps.
I have used parallel branches to set a time for the responding by the user. If the user fails to select the options within the time limit the logic app fails. In my case I have used 1 minute. However you can even set time using Delay until and mention the specific date and time to respond back.
In the parallel step I'm sending the Approval email to the user and then I'm storing all the Lists of the blobs in storage account into a variable.
Note: This results to trigger multiple emails to the users
In the next step, I'm checking if the user's options has already been created by checking their mail id. If yes, it just stores the selected option by the user else it creates the file and then stores the selected options by the user.
RESULTS:
In mail
In LogicApps Run
In storage account
Yes, you can have multiple approval in the To configuration with multiple email ID's separated by semicolons of the Send approval email action of the office 365 connector.
Once it is approved you can get the email ID of the person who has approved the request using the property UserEmailAddress and other details of the output of your Send approval email connector.

Send azure monitor alert to slack not working

I am sure this has been asked many times but am unable to find relevant answer. Is there any way to send Azure monitor alerts to slack via Logic apps or some other way. I have found this template - https://github.com/Azure/azure-quickstart-templates/tree/master/demos/alert-to-slack-with-logic-app and integrated it into my azure system but it is not working.
Have tried some work around mentioned at - https://github.com/Azure/azure-quickstart-templates/issues/3319 but all in vain
Direct Webhook from action group using slack incoming webhook is not supported , as azure sends alert using its own schema.
Any input is highly appreciated ...
Azure Logic Apps is definitely an option, but if you are not needing complicated workflows, just send the alert directly from Azure Monitor to a Slack channel. You can do this by generating a unique email for the Slack channel and using that email in your Azure Monitor alert action group settings. Another option would be to send the alert to your company alert email inbox and have it automatically forwarded to that Slack channel email address. With this approach you completely remove the dependency and complexity of Azure Logic Apps.
https://slack.com/help/articles/206819278-Send-emails-to-Slack#h_01F4WDZG8RTCTNAMR4KJ7D419V

Azure API Management product subscription tracking

I am using Azure API Management for managing our APIs. Its containing product and all. Now I also want to catch some of the customer information into my database.
So my question is : "Is there anyway such that whenever someone is subscribing any product, my API will trigger?"
What I want to do is I will create an API which will fetch the details from Azure via REST API for all subscriptions and I want to call (auto trigger) that API whenever someone subscribe any product successfully. I know we can set the Approval workflow, we can send notification email also to any specific email id, but can we call any HTTP request?
Also if anyone have more idea about Developer portal then please share. (can we customize it, till what level, how, etc.)
Thanks in Advance..
One way is to put an Event Grid system topic on the resource group containing API Management service with
filter for Resource Write Success
subject filter / Subject begins with /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ApiManagement/service/{apiManagementService}/subscriptions
and forward to Azure Function or WebHook - basically filter for activities logged as Subscribe to product or Update subscription on the resource.

Send email notification for inactive task or bugs----Azure Devops

How do you configure an Email Notification for an individual user in an organization for not responding in a timeframe?
Eg: An email notification gets sent if Initial Response was not met within say 6 hours of VSO being assigned.
In Azure DevOps project notification settings, it's possible to configure a notification based on the following actions taking place on a work item:
Notification settings based on a timeout, or lack of response, are not apparent.
Is it possible to configure a notification based on a lack of activity for a work item?
Currently there are below pre-defined notifications for work items in Azure Boards.
See: Manage your personal notifications for details.
I am afraid that no such notifications are designed for your requirement. However, as a workaround, we can create a query to find those work items which are not changed from New for a period when they have been assigned to members, as below.
Above query will query bugs and tasks which are assigned to members but still state in New state and they are created earlier than today across projects. See: Define a query for details.
And clicking "Email query" allows you to send this query result to specific members.

How to change connection for Logic App, when you are trying to trigger Logic app thorugh Email

enter image description here[My logic app should trigger when a mail is received in the outlook inbox folder. But I am able to connect to only 1 outlook account. How can I add multiple Outlook accounts? I have a table created in my Azure Table, in that table there is a column 'From_EMAIL_ID', I need to configure this 'From_EMAIL_ID' parameter to my Connection. So in the future whenever new records for my 'From_EMAIL_ID' get inserted in this table, still I should be able to trigger the logic app. In Short, I want to bind the connection in the logic app to the field name 'FROM_EMAIL_ID' in the enter image description hereazure table.]3
Currently a logic app cannot connect to multiple Outlook APIs, so that might be your issue if I'm understanding correctly. There is an open feedback item for this here: https://feedback.azure.com/forums/34192--general-feedback/suggestions/40009840-logic-app-should-be-able-to-connect-multiple-outlo
You can send multiple emails by adding multiple emails to the "To" field, though. https://learn.microsoft.com/en-us/azure/app-service/tutorial-send-email?tabs=dotnet

Resources