How-To: Set Up EZSSH Access to Your Azure Resources

Learn how to give EZSSH access to your Azure subscription or resource group with Azure RBAC, so Azure Policies can detect your virtual machines and who has access to them.

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.

Prerequisites for Giving EZSSH Access to Azure

  1. You have registered the Keytos application in your Entra ID tenant.
  2. You have selected an EZSSH plan.
  3. 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

  1. Sign in to the Azure Portal.

  2. Navigate to the subscription or resource group that you want to enroll in EZSSH.

  3. From the left-hand menu, select Access control (IAM).

    Azure subscription Access control IAM page with role assignments tab selected
  4. Click Add, and then select Add role assignment.

    Azure IAM Access control page with Add role assignment panel opening on the right
  5. Select the role you need for EZSSH: Contributor or Reader.

    Azure Add role assignment panel with role search field highlighted
  6. Search for and select the EZSSH application as the member.

    Azure Add role assignment showing EZSSH application selected as Contributor with member highlighted
  7. Save the role assignment.

    Azure Add role assignment panel with EZSSH selected and Save button highlighted

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