@@ -282,7 +282,7 @@ export AZURE_SSH_PUBLIC_KEY=$(cat "${SSH_KEY_FILE}.pub" | base64 | tr -d '\r\n')
282282
283283# To populate secret in azure.json file.
284284export AZURE_JSON_B64=$( echo ' {
285- "cloud": "${AZURE_ENVIRONMENT}",
285+ "cloud": "${AZURE_ENVIRONMENT:="AzurePublicCloud" }",
286286 "tenantId": "${AZURE_TENANT_ID}",
287287 "subscriptionId": "${AZURE_SUBSCRIPTION_ID}",
288288 "aadClientId": "${AZURE_CLIENT_ID}",
@@ -291,7 +291,7 @@ export AZURE_JSON_B64=$(echo '{
291291 "securityGroupName": "${CLUSTER_NAME}-node-nsg",
292292 "location": "${AZURE_LOCATION}",
293293 "vmType": "vmss",
294- "vnetName": "${AZURE_VNET_NAME}",
294+ "vnetName": "${AZURE_VNET_NAME:=$CLUSTER_NAME-vnet }",
295295 "vnetResourceGroup": "${CLUSTER_NAME}",
296296 "subnetName": "${CLUSTER_NAME}-node-subnet",
297297 "routeTableName": "${CLUSTER_NAME}-node-routetable",
@@ -302,6 +302,9 @@ export AZURE_JSON_B64=$(echo '{
302302}' | envsubst | base64 | tr -d ' \r\n' )
303303```
304304
305+ ⚠️ Please note the generated templates include default values and therefore requrie the use of ` clusterctl ` to create the cluster
306+ or the use of ` envsubst ` to replace these values
307+
305308##### Creating the cluster
306309
307310⚠️ Make sure you followed the previous two steps to build the dev image and set the required environment variables before proceding.
0 commit comments