Skip to main content
Redhat Developers  Logo
  • Products

    Platforms

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat AI
      Red Hat AI
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • View All Red Hat Products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat Developer Hub
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat OpenShift Local
    • Red Hat Developer Sandbox

      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Secure Development & Architectures

      • Security
      • Secure coding
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • Product Documentation
    • API Catalog
    • Legacy Documentation
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

Create an Azure Red Hat OpenShift cluster in less than 5 minutes

March 4, 2022
Karan Singh
Related topics:
ContainersKubernetes
Related products:
Microsoft Azure Red Hat OpenShiftRed Hat OpenShift

Share:

    Microsoft Azure Red Hat OpenShift is a fully managed service of Red Hat OpenShift on Azure, jointly engineered, managed, and supported by Microsoft and Red Hat. Azure Red Hat OpenShift takes care of cluster and resource management, freeing developers to focus on developing new services (see Figure 1). The service offers a highly available control plane with fully managed master and application nodes—no virtual machines to operate and no patching required. Azure Red Hat OpenShift is backed by the expertise of site reliability engineers throughout the world.

    This tutorial (a simplified version of the official documentation) will show how you can easily create and launch an Azure Red Hat OpenShift cluster. 

    Figure 1: Components of Azure Red Hat OpenShift.
    Figure 1: Azure Red Hat OpenShift high-level architecture.


    [ Learning path: Getting started with Microsoft Azure Red Hat OpenShift (ARO) ] 

    Prerequisites

    To follow this tutorial, you need an Azure account and portal access. In addition:

    • Azure Red Hat OpenShift requires roleAssignment/write permission, so make sure your Azure user account has Microsoft.Authorization/roleAssignments/write permissions, such as User Access Administrator or Owner (Figure 2). More info can be found in the documentation for Azure built-in roles.
      Screenshot of Azure user account settings.
      Figure 2. Azure role assignment and user authorization.
    • Azure Red Hat OpenShift requires a minimum of 40 cores to create and run an OpenShift cluster. The default Azure resource quota for a new Azure subscription is 10 and does not meet this requirement. Therefore, you have to increase your quota from 10 to a minimum of 40. To request an increase in your resource limit, please consult the Microsoft document titled Increase VM-family vCPU quotas.

    Set up Azure Red Hat OpenShift

    Before setting up an OpenShift cluster, perform the following steps.

    1. Launch Azure Cloud Shell from Azure Portal (top right).

    2. Export some variables that we will often use in the rest of the tutorial. Substitute the values for the location and resource group that are appropriate for your environment:

      export LOCATION=centralindia
      export RESOURCEGROUP=ksingh-resource-group-india
      export CLUSTER=azureopenstack
    3. Verify the quota:

      az vm list-usage -l $LOCATION \
      --query "[?contains(name.value, 'standardDSv3Family')]" \
      -o table
    4. Get your subscription ID from Azure Portal:

      az account set --subscription <SUBSCRIPTION ID>
    5. Get the OpenShift pull secrets for your Azure Red Hat OpenShift cluster from cloud.redhat.com.

    6. Download the file with your pull secret and store it on Azure Cloud Shell under the name pull-secret.txt.

    Launch an Azure Red Hat OpenShift cluster

    Now you can create a cluster as follows.

    1. Register the resource providers:

      az provider register -n Microsoft.RedHatOpenShift --wait
      az provider register -n Microsoft.Compute --wait
      az provider register -n Microsoft.Storage --wait
      az provider register -n Microsoft.Authorization --wait
    2. Create a resource group:

      az group create --name $RESOURCEGROUP --location $LOCATION
    3. Create a virtual network:

      az network vnet create --resource-group $RESOURCEGROUP --name aro-vnet --address-prefixes 10.0.0.0/22
    4. Create two subnets in the aro-vnet network, one for the OpenShift control plane (master) and one for worker nodes:

      az network vnet subnet create --resource-group $RESOURCEGROUP --vnet-name aro-vnet --name master-subnet --address-prefixes 10.0.0.0/23 --service-endpoints Microsoft.ContainerRegistry
      
      az network vnet subnet create --resource-group $RESOURCEGROUP --vnet-name aro-vnet --name worker-subnet --address-prefixes 10.0.2.0/23 --service-endpoints Microsoft.ContainerRegistry
    5. Update the master node subnet network policy:

      az network vnet subnet update --name master-subnet --resource-group $RESOURCEGROUP --vnet-name aro-vnet --disable-private-link-service-network-policies true
    6. Create an Azure Red Hat OpenShift cluster with a default configuration:

      az aro create --resource-group $RESOURCEGROUP --name $CLUSTER --vnet aro-vnet --master-subnet master-subnet --worker-subnet worker-subnet --pull-secret @pull-secret.txt

    Connect to your Azure Red Hat OpenShift cluster

    You can start working in your cluster as follows:

    1. Get the URL and credentials of the OpenShift console (graphical user interface):

      az aro show --name $CLUSTER --resource-group $RESOURCEGROUP --query "consoleProfile.url" -o tsv
      az aro list-credentials --name $CLUSTER --resource-group $RESOURCEGROUP
    2. Install the OpenShift oc command-line client:

      cd ~
      wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz
      
      mkdir openshift && tar -zxvf openshift-client-linux.tar.gz -C openshift echo 'export PATH=$PATH:~/openshift' >> ~/.bashrc && source ~/.bashrc
      
    3. Connect to OpenShift using oc:

      apiServer=$(az aro show -g $RESOURCEGROUP -n $CLUSTER --query apiserverProfile.url -o tsv) && oc login $apiServer -u kubeadmin -p

    Summary

    As you've seen in this tutorial, launching an Azure Red Hat OpenShift cluster from Azure Cloud Shell and aro CLI is simple and easy. I hope this article helps. See you next time!

    Last updated: September 20, 2023

    Related Posts

    • Deploying JBoss EAP with RHEL and Azure

    • It’s Time To Accelerate Your Application Development With Red Hat JBoss Middleware And Microsoft Azure

    • Deploying MicroProfile apps on Microsoft Azure using the Azure Open Service Broker

    • Introduction to the Red Hat OpenShift deployment extension for Microsoft Azure DevOps

    Recent Posts

    • Skopeo: The unsung hero of Linux container-tools

    • Automate certificate management in OpenShift

    • Customize RHEL CoreOS at scale: On-cluster image mode in OpenShift

    • How to set up KServe autoscaling for vLLM with KEDA

    • How I used Cursor AI to migrate a Bash test suite to Python

    What’s up next?

    Learn how to deploy an application on a cluster using Red Hat OpenShift Service on AWS. This learning path uses a pre-built application to allow you to become more familiar with OpenShift and Kubernetes features.

    Start learning
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2025 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue