is there any possibility to link AzureAlerts and Azuredevops workitems? - azure-devops

is there any automated way to directly create bugs in Azuredevops projects dashboard and assigned to team whenever Aure loganalytic query based alerts triggered?

Basically, if the Azure Log Analytics query based alerts can call other services or APIs, then it's possible to create work items by calling the REST API Work Items - Create. But, there doesn't seem to be a built-in way to do this.
However, there's an Azure Log Analytics connector in Power Automate. You can try to setup a flow using the Azure Log Analytics and Azure DevOps connectors in Power Automate. The flow will be triggered when the Azure Log Analytics query based alert is trigged.
You need to call the Work Items - Create REST API in flow to create the bug. More information please reference Add an Attachment in Azure Dev Ops using MS Flow and Azure DevOps Integration (via Microsoft Power Automate)

Related

Is it possible to update a file in azure devops repository using power automate?

I can't find any connector in power automate to update a file in azure devops repository.
I am trying to automate the process of checkin our deployment sheet in azure devops repository. My flow is triggered when the custom work item type is closed. An adaptive card is sent to teams where the user can update the logs. Then I want to automatically update the log sheet present in azure devops. Prior to this we used to update the sheet in excel and again commit it from visual studio.
For operations which are not supported by the default connector you could always look into using the Azure DevOps REST API service in combination with an Send an HTTP request to Azure DevOps action.
I would look into using for example the Pushes - Create method:
https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pushes/create?view=azure-devops-rest-6.0&tabs=HTTP
Have a look at this StackOverflow thread, that might be useful as well:
How to use Azure DevOps REST API to Update File?

How to Convert the logicapp plan from consumption to Standard by using azure devops?

I am trying to convert logicapp plans using Azure DevOps pipelines in our organization but I didn't find any option to run the task in ADO. Any suggestions Please.
As of now as per this Microsoft Document. Azure Devops is not supporting Logic APP standard plan. So, we can't convert consumption to standard plan.
You can raise a Feature Request that will help the other community members who want to use this feature.

Where can I find a full feature comparison of ADO Server 2020 vs ADO Services?

From the point of view of an team admin and user.
Particularly interested in planning tools and boards.
There is no such documentation. However, you can compare some features on this page: Azure DevOps Feature Timeline.
Additionally, Azure DevOps Service continually gets new features. To get new features on Azure DevOps Server, you have to update it.
Example of the last changes on the server on service:

Is there an efficient way to stream Azure DevOps data to Azure Log Analytics

I have recently been creating a POC using the new DataDog/Azure DevOps Integration. The purpose of doing this is to aggregate all of my build/release logs, PR data, etc into DataDog to build insights, alerts, dashboards, etc.
The DataDog charts are very nice, but I would prefer to use Azure Log Analytics as this is where most of my company's log and metric data is aggregated already and the ability to correlate it would be helpful. Note, I realize that Azure DevOps has Analytics charting and PowerBI integration, but I would like to use Log Analytics to store the metric and log data, if possible.
The Azure DevOps ServiceHooks do not have Azure Log Analytics as an option (see image below). Maybe the trick is to push it to Azure Service Bus and then push it to Log Analytics?
I have looked at the Azure DevOps Reporting documentation and I didn't see anything obvious.
If anyone knows of any good blogs on pushing data from Azure DevOps to Log Analytics, I'd really appreciate it. Unfortunately most of my searches come back with advice on how to use Azure DevOps to provision monitoring of external applications with App Insights and Log Analytic rather than the other way around.
I can imagine using a scheduled task calling the Azure DevOps API and pushing it into Log Analytics API, but that seems like the least elegant and most error prone solution. Any thoughts on the best ways to monitor this data are appreciated. Thanks!

How would I go about setting up a web hook listener on Azure DevOps?

Goal:
We have a Translation Management System project with a set of string translations, which can be exported as iOS, Android, and web formats. This can be done via its API, CLI, or manually with the UI. We need to integrate with our git-based repository, which lives in DevOps, so that when changes are made to the TMS translations, the code base is updated automatically (preferably a PR would be created with the changes).
What I Have Tried:
I am a mobile developer with little web hook experience, but it seems that they are the key to the solution. I can configure the web hook on the TMS side, but need to provide a URL with a listener. Going through the Azure DevOps service hooks settings and reading documentation extensively, I can't find any leads on a way to set up a custom listener to subscribe to another service's web hook, consume its payload, and trigger an action in DevOps.
I'm aware this may be limited by the capabilities of the TMS and DevOps, but how would this be tackled viewing it from a high level perspective? It doesn't seem like there's any built-in solution, so what would a custom solution entail? If something along the lines of what I'm looking for isn't possible, I would like to know that as well.
Thanks in advance!
So that when changes are made to the TMS translations, the code base
is updated automatically (preferably a PR would be created with the
changes).
Sorry but as I know it's not supported scenario in Azure Devops Service.
1.The service hooks option in azure devops service is that when something(event) happens in Azure Devops Service, it runs task(action) on target service. But what you want is when something happens in external service, it runs task(action) in azure devops service. For now this behavior is not supported.
2.And different service in Service Hooks has different supported actions. Let's take Jenkins service(one service hooks) as example, see step5 in trigger Jenkins: Azure Devops can trigger Jenkins build.
As for Web Hooks(another service hooks), it can't trigger actions like the code base is updated automatically. It just sends the Json representation.
So the scenario you want is not supported for now by Azure Devops Service.
In addition: Not sure about how your TMS works, but you can consider using Azure Devops Rest API to trigger actions in Azure Devops Service. (These rest apis can be used to queue build, release or do git-related actions )
When changes are made to your TMS translations, you may call corresponding Azure Devops rest api to manage git repos in Azure Devops if your TMS supports this kind of behavior.
Hope all above resolves your puzzle why your scenario is not supported by Web Hooks in Azure Devops:)
When you Authorize your GitHub repo through the devops settings, webhook will be automatically created on your repo with configurable hook events.