Integration with Microsoft Azure
This page explains how to automatically import your Virtual Machines into Termius and keep them up to date as your infrastructure changes.
Who can use this feature:
Subscriptions: Team, Business, and Enterprise
Overview
This integration securely imports Virtual Machines into a group in Termius that automatically updates to reflect the changes in your Azure subscription. When you add or remove a server in Azure, or change a VM's details, a host entry in Termius will appear, disappear, or update accordingly.
Configure Azure access

To connect Termius to your Azure cloud, you need a Directory (tenant) ID, Application (client) ID, and Secret Value with read-only permissions. You can get Azure credentials via the Azure portal, CLI, or PowerShell. Termius will use it to access information about your Azure subscription.
The Azure credentials you enter in Termius are stored locally and are not synced across devices.
For each Virtual Machine, Termius imports the Name and Public IP address. If a VM has no public IP address, it will not be imported into Termius.
Create an Azure application
Sign in to the Azure portal and select Microsoft Entra ID in the left navigation pane

Go to
Manage→App registrations, then click+ New registration
Enter a name for the application (this will be the service principal name). Then choose the account types that can use this application under Supported account types

Click
RegisterOn the application's overview page, copy the
Application (client) IDandDirectory (tenant) ID. You'll paste these into the Client ID and Tenant ID fields in Termius
Browse to
Manage>Certificates & secretsin the left navigation pane
Click
+ New client secretunder Client secrets. Provide aDescriptionand set anExpirationfor the secret. ClickAdd
Copy and save your
Secret Valueimmediately. Azure will not display it again for security purposes. You'll paste this Client Secret field in Termius
Assign a role to the Azure application
To access information about Virtual Machines in your subscription, you must assign a role to the application. Termius only needs permission to read information about Virtual Machines and networks. You can use the Reader built-in role, or create a custom role with minimum required permissions.
You can set the scope at the level of the subscription, resource group, or resource level.
To assign a role at the subscription scope:
In the Azure portal, use the search bar at the top to search for and select
Subscriptions
Select the
subscriptionyou want to assign the application to
In the left pane, click
Access control (IAM)
Click
Add→Add role assignment
In the Role tab, select
Readerand clickNext
In the Members tab, click
Select membersand search for the application you created by name
Click
Review + assign
Your Azure application is now set up and Termius can load information about your Virtual Machines.
For the up-to-date instructions, see the Microsoft Azure documentation.
Enable Azure integration in Termius
On the
Hostsscreen, click the chevron next to theNew Hostbutton and chooseAzure Integration
In the
Labelfield, enter the group name
Paste the credentials from your Azure application into the corresponding fields:
Directory (tenant) ID → Tenant ID
Application (client) ID → Client ID
Client Secret value → Client Secret

(Optional) You can configure additional SSH settings for the group, such as port or credentials. Click
Add protocolsbelow the Cloud sync settings, and fill out the required fields. For more details, see Groups and tags
Termius automatically saves the group and begins importing your Virtual Machines
The Azure credentials you enter in Termius are stored locally and are not synced across devices.
Last updated
Was this helpful?

