#!/bin/bash

if [ -z "${CUSTOMER_RG_NAME:-}" ]; then
    export CUSTOMER_RG_NAME="$USER-net-rg-03"
fi

export CUSTOMER_VNET_NAME="customer-vnet"
export CUSTOMER_VNET_SUBNET1="customer-subnet-1"
export CUSTOMER_VNET_INTEGRATION_SUBNET="customer-vnet-integration-subnet"
export CUSTOMER_NSG="customer-nsg"
export SUBSCRIPTION_ID=$(az account show --query id --output tsv)
export TENANT_ID=$(az account show --query tenantId --output tsv)
if [ -z "${CLUSTER_NAME:-}" ]; then
    export CLUSTER_NAME="$USER"
fi
MANAGED_RESOURCE_GROUP="$CLUSTER_NAME-rg-03"

if [ -z "${NP_NAME:-}" ]; then
    export NP_NAME="np-1"
fi

export SUBSCRIPTION_RESOURCE_ID="/subscriptions/${SUBSCRIPTION_ID}"
export RESOURCE_GROUP_RESOURCE_ID="${SUBSCRIPTION_RESOURCE_ID}/resourceGroups/${CUSTOMER_RG_NAME}"
export CLUSTER_RESOURCE_ID="${RESOURCE_GROUP_RESOURCE_ID}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/${CLUSTER_NAME}"
export NODE_POOL_RESOURCE_ID="${CLUSTER_RESOURCE_ID}/nodePools/${NP_NAME}"
