File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
.pipelines/swiftv2-long-running/scripts Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff 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 '"
You can’t perform that action at this time.
0 commit comments