We have on-prem machines, and a bunch of them when offline, and we didn't know for several days because the pipelines just kept waiting for the machines. How can we set up an email when they go offline?
You could leverage something like the Azure Logic App, call the Azure REST API - Agents - List via the Http Action to check the TaskAgentStatus, and send some notification like send an email when the status is offline.
Related
I'm pretty new to Azure SignalR and SignalR in general, I'm currently using Azure SignalR(default) for my Web App to send simple notifications to React application. Now I need to send same type of messages from Azure function(dotnet isolated) to the same React application but I'm facing some difficulties to get it all working. I've read quite some documentation but I can't find any example of how to send messages properly from az function to existing SignalR in default mode. When I add .AddSignalR().AddAzureSignalR("connection string") in functions startup I get exception that Azure signalR is not connected yet when I try to send a message
Just trying to find a right direction to look at, for now only found solutions to have 2 separate hubs for az function and web app and connect react app to both or send http requests from az function to web app and work with hub in web app but both seem to be quite shaky
I'm facing the issue that I can't get email notification from Azure DevOps.
I have read this question and learnt that there is a job monitor that can check whether Azure DevOps has sent the emails.
If I go into the job monitor I can see that the email notification job was partially successful...
I want to know how could I get the job monitor and how to use it.
By the way, I have done some checkings following this document but the issue still exists.
I want to know how could I get the job monitor and how to use it.
The job monitor is a monitoring dashboard dedicated to TFS. If you are using the azure devops service, I am afraid you cannot use the job monitor. As far as I know, it is impossible to check whether the email is sent in the azure devops service. Please refer to this blog.
You can first go to your personal subscriptions and locate the subscription, which you feel should have produced an email and ensure it's enabled.
I am trying to understand the difference between Service Hooks and Service Connections in Azure DevOps.
Service Hooks and Service Connections both seem to do the same thing according to these description.
"Service connections enable you to connect to external and remote services to execute tasks in a job."
Service Connections
"Service hooks let you run tasks on other services when events happen in your Azure DevOps projects."
Service Hooks
None of these pages tell the reader the difference between service hooks and service connections. Even though I am sure each is used for a different purpose.
Service connections enable you to connect to external and remote services to execute tasks in a Azure pipeline job. For example, you may need to connect to your Microsoft Azure subscription, to a different build server or file server, to an online continuous integration environment, or to services you install on remote computers.
You could go to Project Settings>>Service connections page to see available service connections. And when you use tasks which required to connect to external and remote services, you will see it requires you to set up corresponding service connection. For example, if you use GitHub repository as the source repository in pipeline, you need to set up GitHub service connection.
In the meanwhile, Service hooks let you run tasks on other services when events happen in your Azure DevOps projects. You could go to Project Settings>>Service hooks page to integrate with your favorite services by notifying them when events happen in your project. For example, create a card in Trello when a work item is created or send a push notification to your team's mobile devices when a build fails.
You can also use service hooks in custom apps and services as a more efficient way to drive activities when events happen in your projects. Also you could create a service hook for Azure DevOps with Microsoft Teams, so members can get notified when builds are completed, work item updated, etc.
I have Self-hosted agents on my Azure DevOps on which the execution is scheduled from ADO every night using the release pipelines which i've created. I would want to send out email notification with the results to a Distribution List after the completion of the execution. How can i achieve this??
I want this summary page to be sent as an attachment -
Setting up email Notification on Azure DevOps
AFAIK, Azure devops does not support add attachment in email Notification directly.
As workaround, we could use a powershell script to get test results with REST API then send emails:
To get test results with RESI API Releases - Get Task Log:
GET https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/releases/{releaseId}/environments/{environmentId}/deployPhases/{releaseDeployPhaseId}/tasks/{taskId}/logs?api-version=5.0-preview.2
Then use powershell scripts to read the details of the test result file (.trx) and create a formatted email message to sent to the defined recipients:
You could check this thread Send Test Result Email After Running Automated Tests with Release Management for some details.
Hope this helps.
I am trying to build a automation powershell script on azurE whiCh can give me email alerts, by using network watchers new feature i.e connectivity check, the script can test out and send the alert whenever the vm is not reachable, can somebody explain mE how to do it or any article which I Can follow
For now, Azure network watcher connectivity check does not support send mail to users.
As a workaround, maybe we can set Alert rules to monitor Azure VM.
For example, we can set Metric to Network In, and the Threshold to 1, then enable Email owners, contributors and readers, and add the email address. In this way, when the VM receive network traffic less than 1 bytes over the last 5 minutes, we will get email. Settings like this screenshot:
More information about set metric alerts, please refer to this official article.