diff --git a/modules/get-started/pages/cluster-types/byoc/azure/vnet-azure.adoc b/modules/get-started/pages/cluster-types/byoc/azure/vnet-azure.adoc index 021a89021..7896914ef 100644 --- a/modules/get-started/pages/cluster-types/byoc/azure/vnet-azure.adoc +++ b/modules/get-started/pages/cluster-types/byoc/azure/vnet-azure.adoc @@ -54,7 +54,7 @@ export AZURE_REGION=eastus . Create a resource group to contain all resources, and then create a VNet with your address and subnet prefixes. + -The following example uses the environment variables to create the `sample-redpanda-rg` resource group and the `sample-vnet` virtual network with an address space of `10.0.0.0/16` and a subnet named `default` with a smaller range of `10.0.0.0/24`. +The following example uses the environment variables to create the `sample-redpanda-rg` resource group and the `sample-vnet` virtual network with an address space of `10.0.0.0/16`. + ```bash az group create --name ${AZURE_RESOURCE_GROUP_NAME} --location ${AZURE_REGION} @@ -63,9 +63,7 @@ az network vnet create \ --name ${AZURE_VNET_NAME} \ --resource-group $AZURE_RESOURCE_GROUP_NAME \ --location ${AZURE_REGION} \ - --address-prefix 10.0.0.0/16 \ - --subnet-name default \ - --subnet-prefixes 10.0.0.0/24 + --address-prefix 10.0.0.0/16 ``` . Set additional environment variables for Azure resources. For example: @@ -73,7 +71,7 @@ az network vnet create \ ```bash export AZURE_SUBSCRIPTION_ID= export AZURE_TENANT_ID= -export AZURE_ZONES=["eastus-az2"] +export AZURE_ZONES=[\"eastus-az2\"] export AZURE_RESOURCE_PREFIX=sample- ``` @@ -285,48 +283,73 @@ TIP: To get the Redpanda authentication credentials, follow the xref:manage:api/ To create the Redpanda network: +. Define environment variables to be utilized by the subsequent steps to configure the Redpanda Network. The following environment variables shown below use configuration values parsed from the `terraform output` which is populated after applying the `cloud-examples` Terraform module. ++ +```base +export REDPANDA_CLUSTER_NAME= +export REDPANDA_RG_ID= +export REDPANDA_MANAGEMENT_STORAGE_ACCOUNT="$(terraform output -raw management_bucket_storage_account_name)" +export REDPANDA_MANAGEMENT_STORAGE_CONTAINER="$(terraform output -raw management_bucket_storage_container_name)" +export REDPANDA_0_PODS_SUBNET_NAME="$(terraform output -raw rp_0_pods_subnet_name)" +export REDPANDA_0_VNET_SUBNET_NAME="$(terraform output -raw rp_0_vnet_subnet_name)" +export REDPANDA_1_PODS_SUBNET_NAME="$(terraform output -raw rp_1_pods_subnet_name)" +export REDPANDA_1_VNET_SUBNET_NAME="$(terraform output -raw rp_1_vnet_subnet_name)" +export REDPANDA_2_PODS_SUBNET_NAME="$(terraform output -raw rp_2_pods_subnet_name)" +export REDPANDA_2_VNET_SUBNET_NAME="$(terraform output -raw rp_2_vnet_subnet_name)" +export REDPANDA_CONNECT_PODS_SUBNET_NAME="$(terraform output -raw rp_connect_pods_subnet_name)" +export REDPANDA_CONNECT_VNET_SUBNET_NAME="$(terraform output -raw rp_connect_vnet_subnet_name)" +export KAFKA_CONNECT_PODS_SUBNET_NAME="$(terraform output -raw kafka_connect_pods_subnet_name)" +export KAFKA_CONNECT_VNET_SUBNET_NAME="$(terraform output -raw kafka_connect_vnet_subnet_name)" +export SYSTEM_PODS_SUBNET_NAME="$(terraform output -raw system_pods_subnet_name)" +export SYSTEM_VNET_SUBNET_NAME="$(terraform output -raw system_vnet_subnet_name)" +export REDPANDA_AGENT_SUBNET_NAME="$(terraform output -raw agent_private_subnet_name)" +export REDPANDA_EGRESS_SUBNET_NAME="$(terraform output -raw egress_subnet_name)" +``` + . Define a JSON file called `redpanda-network.json` to configure the network for Redpanda with details about VNet, subnets, and storage. + .Show script [%collapsible] ==== ```bash -cat > redpanda-network.json < redpanda-network.json < redpanda-cluster.json < redpanda-cluster.json <