Deploy Keycloak on Azure Cobalt 100-based Arm64 virtual machines for identity and access management
Introduction
Understand Keycloak for identity and access management on Azure Cobalt 100-based virtual machines
Create an Azure Cobalt 100-based Arm64 virtual machine
Allow access to Keycloak and the Flask application on Azure
Deploy Keycloak on an Azure Cobalt 100-based Arm64 virtual machine
Integrate a Flask OAuth2 application with Keycloak on an Azure Cobalt 100-based Arm64 virtual machine
Next Steps
Deploy Keycloak on Azure Cobalt 100-based Arm64 virtual machines for identity and access management
Introduction
Understand Keycloak for identity and access management on Azure Cobalt 100-based virtual machines
Create an Azure Cobalt 100-based Arm64 virtual machine
Allow access to Keycloak and the Flask application on Azure
Deploy Keycloak on an Azure Cobalt 100-based Arm64 virtual machine
Integrate a Flask OAuth2 application with Keycloak on an Azure Cobalt 100-based Arm64 virtual machine
Next Steps
Set up an Arm-based Azure virtual machine
In this section, you’ll launch the Azure portal to create a virtual machine (VM) powered by the Arm-based Azure Cobalt 100 processor.
You’ll create a general-purpose VM in the Dpsv6 series. For more information about this series of VMs, see the Microsoft Azure guide for the Dpsv6 size series .
For more detailed steps to create a VM, see the Deploy a Cobalt 100 virtual machine on Azure Learning Path .
Use the Azure portal to create a virtual machine
To create an Azure virtual machine using the Azure portal:
- Launch the Azure portal and navigate to Virtual Machines.
- Select Create, and select Virtual Machine from the drop-down list.
- In the Basics tab, provide instance details such as Virtual machine name and Region.
- Select Ubuntu Pro 24.04 LTS as the image for your virtual machine, and select Arm64 as the VM architecture.
- In the Size field, select See all sizes and select the D-Series v6 family of virtual machines.
- Select D4ps_v6 from the list as shown in the following screenshot:
Select D4ps_v6 from the D-Series v6 family
- For Authentication type, select SSH public key.
Azure generates an SSH key pair for you that you can save for future use. This method is fast, secure, and easy for connecting to your VM.
- Fill in the Administrator username for your VM.
- Select Generate new key pair, and select RSA SSH Format as the SSH key type.
RSA offers better security with keys longer than 3072 bits.
- Give your SSH key a key pair name.
- Under Inbound port rules, select HTTP (80) and SSH (22) as the inbound ports, as shown in the following screenshot:
Configure inbound port rules for HTTP and SSH access
- Select the Review + Create tab and review the configuration for your virtual machine. It should look like the following:
Review VM configuration before creation
- When you’re happy with your selection, select the Create button and then Download private key and create resource.
Download SSH key and create the virtual machine
Your VM should be ready and running in a few minutes. You can SSH into the virtual machine using the private key, along with the public IP details.
Successful VM deployment confirmation
To learn more about Arm-based virtual machines in Azure, see the Azure section in the Get started with Arm-based cloud instances Learning Path.
Connect to your virtual machine
Use the private key file you downloaded and the public IP address shown in the Azure portal to connect to your virtual machine.
ssh -i <your-key-name>.pem azureuser@YOUR_PUBLIC_IP
Replace <your-key-name> with the name of your SSH key pair and YOUR_PUBLIC_IP with the public IP address shown in the Azure portal after deployment.
What you’ve accomplished and what’s next
You’ve now created an Azure Cobalt 100-based Arm64 virtual machine running Ubuntu 24.04 LTS with SSH authentication configured. The virtual machine is ready for installing PostgreSQL, Keycloak, and the Flask OAuth2 demo application.
Next, you’ll set up firewall rules to allow external traffic for Keycloak and the demo Flask application.