How to deploy Azure cluster in existing Resource Group.

Solution In Progress - Updated -

Environment

  • Red Hat OpenShift Container Platform (RHOCP) on Azure 4.x

Issue

  • Deploy cluster in existing resource group.
  • How to deploy cluster in specific resource group.

Resolution

  • A new cluster cannot be installed in an existing resource group which has some resources in it.
  • However, we can create a new resource group with custom name and specify the same in install-config as below:
...
platform:
  azure:
    resourceGroupName: <mention an empty RG name>
....
  • Please note that if there are already resources in mentioned RG, installation will fail.
  • It is also recommended not to create any other resources apart from cluster resources, as whenever we destroy the cluster, whole resource group will be destroyed, irrespective of the resources.

Root Cause

  • Cluster cannot be installed in an existing non-empty resource group.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments