Set up Ticketing and Azure DevOps
Connect Mondoo to Azure DevOps to create security remediation work items directly from the Mondoo App.
Connect a space to Azure DevOps so team members can create Azure DevOps work items for findings without leaving the Mondoo App. Mondoo uses an app registration to communicate with Azure DevOps.
For an overview of ticketing, read Track and Fix Findings with Ticketing.
Before you begin
- Editor or Owner access to the Mondoo space, or another role with permission to add integrations. To see every role, read Roles and permissions.
- Owner access to your Azure DevOps organization
- Permission to create a service principal in Microsoft Entra ID (global administrator, application administrator or cloud application administrator)
Register and grant permissions to an Azure app
Like any service that integrates with Azure, Mondoo must have a Microsoft Entra ID app registration, a service principal in your Azure tenant. To learn about service principals, read Securing service principals in Microsoft Entra ID in the Microsoft Azure documentation.
-
Log into the Azure portal as a global administrator, application administrator or cloud application administrator.
-
Find and select Microsoft Entra ID.
-
In the navigation sidebar, select App registrations.

-
In the toolbar, select New registration.

-
In the Name box, type a name that lets you recognize that this is a service principal for the Mondoo-DevOps integration.
-
Leave all other fields as the defaults and select the Register button.

Azure creates the app registration and displays its details.
-
Under Client Credentials, select Add a certificate or secret.

-
Select New client secret.

-
Give the client secret a name and select its expiration date. Make note of the expiration date in your records; when the client secret expires, the Mondoo-Azure DevOps integration will stop working until you create a new secret.
-
Select the Add button.

Don't close the Entra browser tab. You need this information for later steps.
Grant the app registration access to your Azure DevOps organization
When you create the app registration as instructed above, Entra saves it as a service principal. Like a user, you can grant a service principal different levels of access to perform tasks in Azure. The app registration you create needs permission to contribute to your Azure DevOps project.
-
In a new tab or window in your browser, access your Azure DevOps organization.
-
At the bottom of the navigation sidebar, select Organization settings.

-
In the navigation sidebar, select Users.
-
Select the Add users button.

-
In the Users or Service Principals box, type and choose the name of the app registration you created for Mondoo.
-
Define this access for the Mondoo app registration service principal:
- Access level: Basic
- Add to projects: The project to which you want Mondoo to add issues
- Azure DevOps Groups: Project Contributors
-
Select the Add button to give the Mondoo app registration service principal the access it needs.
Don't close the browser tab containing the Azure DevOps organization settings. You need this information for later steps.
Add an Azure DevOps integration
-
In the Mondoo App, navigate to the space where you want to set up ticketing and, in the side navigation bar, select Integrations.
-
Select INSTALL, then choose the Ticket Systems category.

-
Select Azure DevOps.

-
In the Choose an integration name box, enter a name for the integration. Make it a name that clearly shows this is an Azure DevOps integration.
-
In the Provide the Azure DevOps organization URL box, enter the organization URL (or OrgURL) for the DevOps organization to which you want Mondoo to add work items. This is the URL you use to access your DevOps organization in your browser, such as
https://dev.azure.com/lunalectric.
-
In the Enter the directory ID box, enter your Microsoft Entra tenant ID. To find this ID in Azure DevOps, access the Organization Settings and, in the navigation sidebar, select Microsoft Entra.

-
In the Provide the service principal ID box, paste the client ID of the app registration service principal you created in the steps above.
Find this in the Application (client) ID field in the app registration essentials.

-
In the Provide the client secret box, paste the value of the client secret you created for your app registration service principal.
Use the secret's Value, not its Secret ID. The Azure portal shows the full value only right after you create the secret, on the Certificates & secrets page. If you didn't copy it then, create a new client secret.

-
Under Preferences, Automatically close work items is on by default for new integrations: closing a ticket in Mondoo also closes the corresponding Azure DevOps work item. You can turn it off now, or later in the integration's settings.

-
Select the CREATE INTEGRATION button.
Mondoo creates the integration and opens its page.
-
To create an Azure DevOps work item for each drift ticket when an asset becomes more exposed to attack, select the pencil icon (Edit integration) on the integration's page, turn on Automatically create work items on drift, enter the client secret again, and save your changes. Drift tickets also require the space's Regression setting. To learn more, read Automatically create tickets on drift.
Verify the integration
Mondoo doesn't create a work item when you save the integration, so a mistyped organization URL or a missing project permission only shows up when Mondoo files its first ticket. Create one test ticket to confirm that the integration works:
-
In the side navigation bar, select Findings, then open any check or advisory. To learn more, read Create Tickets from Checks or Create Tickets from Advisories.
-
Select ACTIONS > Create ticket.
-
In Select Integration, choose the integration you just added, choose the Azure DevOps Project, and select CREATE TICKET.
Mondoo confirms that the ticket is being created and that the external ticket will be ready shortly.
-
In the side navigation bar, select Ticketing and find the test ticket on the Open tab. As soon as Mondoo has filed it, the External Ticket column shows the work item it created.
-
In Azure DevOps, confirm that the new work item exists and contains the finding details.
-
Close the test ticket in Mondoo. If Automatically close work items is on, Mondoo closes the work item too. To learn more, read Close a ticket.
If the External Ticket column stays empty or the ticket's status is Error, read Troubleshoot below.
Troubleshoot
A failed ticket doesn't change the integration's status. If the test ticket's External Ticket column stays empty or its status is Error, check these causes:
| Cause | Fix |
|---|---|
| The client secret expired, or you entered its Secret ID instead of its Value. | Create a new client secret for the app registration in Microsoft Entra ID. If the integration's edit form asks for the client secret, select the pencil icon (Edit integration) and enter the new Value there. Otherwise, the secret belongs to a stored credential: update it on the credentials page. |
| The app registration's service principal isn't a user in the Azure DevOps organization, or it can't contribute to the project. | In the organization settings, add the service principal with Basic access and the Project Contributors group for the project. Read Grant the app registration access to your Azure DevOps organization. |
| The organization URL, directory ID, or service principal ID is wrong. | Select the pencil icon (Edit integration) on the integration's page and correct the value. |
| The project has no Issue work item type. Mondoo creates every work item as an Issue. | Create the ticket in a project whose process includes the Issue work item type. |
After you fix the cause, create a new ticket for the finding and close the one that failed.
If closing a Mondoo ticket fails with Could not close Azure DevOps ticket, Azure DevOps refused to change the work item's state. Mondoo closes a work item by setting its state to Done, which not every work item process has. Turn off Automatically close work items in the integration's settings, then close the Mondoo ticket and close the work item in Azure DevOps yourself.
Next steps
- Create Tickets from Advisories
- Create Tickets from Checks
- Manage Ticketing
- Track and Fix Findings with Ticketing
Last updated on