File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
.pipelines/swiftv2-long-running/scripts Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -62,10 +62,18 @@ create_vnet_subets() {
6262 subnet_name=" ${extra_subnet_array[$i]} "
6363 subnet_cidr=" ${extra_cidr_array[$i]} "
6464 echo " ==> Creating extra subnet: $subnet_name with CIDR: $subnet_cidr "
65- az network vnet subnet create -g " $RG " \
66- --vnet-name " $vnet " --name " $subnet_name " \
67- --delegations Microsoft.SubnetDelegator/msfttestclients \
68- --address-prefixes " $subnet_cidr " -o none
65+
66+ # Only delegate pod subnets (not private endpoint subnets)
67+ if [[ " $subnet_name " != " pe" ]]; then
68+ az network vnet subnet create -g " $RG " \
69+ --vnet-name " $vnet " --name " $subnet_name " \
70+ --delegations Microsoft.SubnetDelegator/msfttestclients \
71+ --address-prefixes " $subnet_cidr " -o none
72+ else
73+ az network vnet subnet create -g " $RG " \
74+ --vnet-name " $vnet " --name " $subnet_name " \
75+ --address-prefixes " $subnet_cidr " -o none
76+ fi
6977 done
7078}
7179
You can’t perform that action at this time.
0 commit comments