How-To: Set Up EZSSH Access to Your Azure Resources
Overview - How to Give EZSSH Access to Your Azure Resources
Azure Policies automatically detect the virtual machines in an Azure subscription or resource group. To do that, EZSSH needs access to that scope. The role you assign depends on the features you want to use:
| Azure Role | What EZSSH Can Do |
|---|---|
| Reader | Detect the endpoints in the scope and the Azure roles assigned to them. You add the policy’s SSH CA to your endpoints yourself, for example with cloud-init or Pulumi. |
| Contributor | Everything Reader can do, plus automatically add the policy’s SSH CA and Linux principals to the virtual machines it detects. |
We recommend Reader if you already deploy your virtual machines with infrastructure as code, since it follows the principle of least privilege. Choose Contributor if you want EZSSH to set up your existing and future virtual machines for you.
If you only plan to use Hybrid Policies, you can skip this guide.
Prerequisites for Giving EZSSH Access to Azure
- You have registered the Keytos application in your Entra ID tenant.
- You have selected an EZSSH plan.
- You are an Owner or User Access Administrator of the Azure subscription or resource group, so you can assign roles.
Step-by-Step Guide - How to Add the EZSSH Application to Azure RBAC
-
Sign in to the Azure Portal.
-
Navigate to the subscription or resource group that you want to enroll in EZSSH.
-
From the left-hand menu, select Access control (IAM).
-
Click Add, and then select Add role assignment.
-
Select the role you need for EZSSH: Contributor or Reader.
-
Search for and select the EZSSH application as the member.
-
Save the role assignment.
Done! EZSSH can now see the resources in that scope. If a scope does not show up when you create your policy, follow our guide to test EZSSH access to your Azure resources.
Next Steps - How to Create Your First Azure Policy
Now that EZSSH has access to your Azure resources, you can create your first Azure Policy.
🚀 Create Your First Azure Policy