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
To allow external traffic for Keycloak and the Flask OAuth2 demo application on the Azure virtual machine, open the required ports in the network security group (NSG).
For more information about Azure setup, see Getting started with Microsoft Azure .
To expose the required ports for Keycloak and the Flask application, create firewall rules:
Azure Virtual machines page
Azure VM networking settings
Create inbound firewall rule
| Port | Purpose | Rule name |
|---|---|---|
8080 | Keycloak admin console | allow-keycloak-8080 |
9000 | Keycloak health and management endpoint | allow-keycloak-9000 |
5000 | Flask OAuth2 demo application | allow-flask-5000 |
Use the following settings for each rule:
*Setting Source to My IP address restricts access to the ports to your current machine only. If your public IP changes or you need to access the services from another machine, update the source IP in the NSG rule.
You can now access:
You’ve now configured the Azure network security group to allow incoming traffic for Keycloak and the Flask OAuth2 demo application that you’ll build in the following sections.
Next, you’ll install Keycloak on the VM and configure PostgreSQL as the backend database.