Skip to content

Commit bf8bad3

Browse files
author
sivakami
committed
stamp infra vnet.
1 parent ea0b778 commit bf8bad3

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

.pipelines/swiftv2-long-running/scripts/create_aks.sh

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,8 @@ for i in $(seq 1 "$CLUSTER_COUNT"); do
4949
wait_for_provisioning "$RG" "$CLUSTER_NAME"
5050

5151
echo "Retrieving VNET ID from AKS cluster..."
52-
53-
node_subnet=$(az aks show \
54-
--resource-group "$RG" \
55-
--name "$CLUSTER_NAME" \
56-
--query "agentPoolProfiles[0].vnetSubnetID" \
57-
-o tsv)
58-
59-
if [[ -z "$node_subnet" ]]; then
60-
echo "ERROR: Could not retrieve AKS node subnet ID"
61-
exit 1
62-
fi
63-
64-
vnet_id="${node_subnet%/subnets/*}"
65-
52+
vnet_id=$(az network vnet show -g "$RG" --name "$CLUSTER_NAME" --query id -o tsv)
6653
echo "Found VNET: $vnet_id"
67-
68-
# Call your stamp function
6954
stamp_vnet "$vnet_id"
7055

7156
echo "Adding multi-tenant nodepool ' to '$CLUSTER_NAME'"

0 commit comments

Comments
 (0)