In this tutorial, you will learn how to use Azure Active Directory (Azure AD) to manage SSH logins for Ubuntu virtual machines (VMs) on Azure.
We will use Ubuntu Pro VMs, as these are normally the most appropriate starting point for somebody who would be interested in managing their logins with Azure AD, but what we will learn would also apply to Ubuntu Server LTS VMs.
What you’ll learn
- How to find your Azure subscription name
- How to create a VM through the Azure Portal that uses Azure AD to manage the SSH login details
- How to give a user Administrative/sudo access to VMs within the Resource Group
- How to log into the VM (using
- How to create a VM using the Azure CLI that uses Azure AD to manage the SSH login details
- How to restrict the access of a VM to user-only (non-sudo)
- How to delete the test Resource Groups that we created
What you’ll need
- A Microsoft Azure account with Azure AD
- Sufficient privileges to launch VMs within that Azure account
- Version 2.22.1 or later of the Azure CLI. Run
az --versionto see the version of az you already have installed or see here for installation or upgrade instructions.