diff --git a/ci-operator/step-registry/ipi/conf/azure/ipi-conf-azure-commands.sh b/ci-operator/step-registry/ipi/conf/azure/ipi-conf-azure-commands.sh index f480a8f7a9be..df82d95c4cd1 100755 --- a/ci-operator/step-registry/ipi/conf/azure/ipi-conf-azure-commands.sh +++ b/ci-operator/step-registry/ipi/conf/azure/ipi-conf-azure-commands.sh @@ -6,18 +6,8 @@ set -o pipefail CONFIG="${SHARED_DIR}/install-config.yaml" -case $((RANDOM % 8)) in -0) AZURE_REGION=centralus;; -1) AZURE_REGION=centralus;; -2) AZURE_REGION=centralus;; -3) AZURE_REGION=centralus;; -4) AZURE_REGION=centralus;; -5) AZURE_REGION=centralus;; -6) AZURE_REGION=eastus2;; -7) AZURE_REGION=westus;; -*) echo >&2 "invalid Azure region index"; exit 1;; -esac -echo "Azure region: ${AZURE_REGION}" +REGION="${LEASED_RESOURCE}" +echo "Azure region: ${REGION}" cat >> "${CONFIG}" << EOF baseDomain: ci.azure.devcluster.openshift.com @@ -29,5 +19,5 @@ compute: platform: azure: baseDomainResourceGroupName: os4-common - region: ${AZURE_REGION} + region: ${REGION} EOF