Termius for Windows, macOS, and Linux allows you to integrate your Microsoft Azure cloud with Termius.
This integration involves the secure import of Virtual Machines to a group in Termius which automatically updates to reflect the changes in your Azure subscription. Once you add or remove a server at Azure or change a VM's details, a host entry will appear, disappear, or be updated in Termius.
For each Virtual Machine at Azure, Termius imports the Name and Public IP address.
To connect Termius to your Azure cloud, you need to:
- Create an Azure AD application and service principal that can access information about Virtual Machines. Such a service principal can be created with the Azure portal, CLI or PowerShell. The Directory (tenant) ID, Application (client) ID and Secret Value you'll receive will be used by Termius to interact with Azure.
- Enable importing of your Virtual Machines at Azure to a group.
Note: Azure integration is unavailable in the Starter (free) plan.
Create an Azure service principal
The following instruction describes how to create a service principal with the Azure portal:
- Navigate to the Azure portal.
- Select Azure Active Directory from the left-hand side menu.
- Select App registrations and + New registration
-
Enter a name for the application (the service principal name).
-
Select Accounts in this organizational directory only.
- Then select Register.
- Copy the Directory (tenant) ID and Application (client) ID to the Tenant ID and Client ID fields in Termius.
- Select Certificates & secrets and + New client secret under Client secrets
- Provide a Description and set the Expires for the secret
- Copy the Secret Value to the Client Secret field in Termius
Assign a role to the Azure application
To access information about virtual machines in your subscription, you must assign an appropriate role to the created application. We recommend using a role with minimum required permissions. Termius needs only permission to read information about virtual machines and networks. If you don't want to create a custom role for Termius, you can use the Virtual Machine Administrator Login built-in role.
You can set the scope at the level of the subscription, resource group, or resource. The following instruction describes how to assign a role at the subscription scope:
- Search for and select Subscriptions, or select Subscriptions on the Home page.
- Select the particular subscription to assign the application to.
-
Select Access control (IAM).
- Select Add > Add role assignment to open the Add role assignment page.
- In the Role tab, select the Virtual Machine Administrator Login role or the role you wish to assign to the application and select the Next button.
- In the Members tab, select Assign access to -> User, group, or service principal, then select Select members and find your application.
- Click the Review + assign button.
When your service principal is set up, Termius can load information about virtual machines.
Enable Azure integration in Termius
- Create an Azure integration in Termius.
- Copy Directory (tenant) ID of your Azure application to the Tenant ID field.
- Copy Application (client) ID of your Azure application to the Client ID field.
- Copy Value of a Client Secret of your Azure application to the Client Secret field.
- Click ➔ at the top right.
This looks handy! I used a similar feature to track my server on Digital Ocean for my Dr. Driving site, It helped me keep tabs on everything easily. It's great that Termius automatically updates if I change anything in Azure. So, Termius can connect to my Azure account and keep track of my virtual machines, which is useful.I am so glad it is working perfectly and people are driving safely
This is super helpful! I used a similar tool to check my server on Digital Ocean for my Dr. Driving site, which made it easy to keep track of things. It’s great that Termius updates automatically when I make changes in Azure. So, Termius can connect to my Azure account and watch my virtual machines, which is really useful. I’m happy it’s working well, and people are driving safely.