Skip to content

Upgrading Keycloak

To upgrade the Keycloak instance to a new version, follow these steps:

  1. In the keycloak repository update the Keycloak version in the docker-azure-dev or docker-azure-prod file to the desired version. You’ll need to update both the FROM quay.io/keycloak/keycloak:<version> as builder and the FROM quay.io/keycloak/keycloak:<version> lines.
  2. Important: Before proceeding, head over to the release pipelines in Azure DevOps and edit the Keycloak deployment pipeline environment variables. Update the version variable to match the new version you set in the repository.
  3. Commit and push the changes to the repository.
  4. A new release will be triggered in Azure DevOps. Monitor the release to ensure it completes successfully.
  5. After the deployment is complete, head over to Azure container apps and create a new revision for the Keycloak container app to apply the changes. Here, you’ll need to click on the container image and select the image tag that corresponds to the new version you just deployed.
  6. Depending on if it is the dev or prod container app, you might need to manually direct traffic to the new revision once it’s fully running (this is required for the dev container app).