Skip to content

Commit 5da0dbe

Browse files
azure-sdkbenbp
andauthored
Pass pipeline vnet to live test arm templates (#36121)
Co-authored-by: Ben Broderick Phillips <[email protected]>
1 parent dc0f63a commit 5da0dbe

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

eng/common/TestResources/New-TestResources.ps1

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,15 @@ param (
106106

107107
. $PSScriptRoot/SubConfig-Helpers.ps1
108108

109+
$azsdkPipelineVnet = "/subscriptions/a18897a6-7e44-457d-9260-f2854c0aca42/resourceGroups/azsdk-pools/providers/Microsoft.Network/virtualNetworks/azsdk-pipeline-vnet-wus"
110+
$azsdkPipelineSubnets = @(
111+
($azsdkPipelineVnet + "/subnets/pipeline-subnet-ubuntu-1804-general"),
112+
($azsdkPipelineVnet + "/subnets/pipeline-subnet-ubuntu-2004-general"),
113+
($azsdkPipelineVnet + "/subnets/pipeline-subnet-ubuntu-2204-general"),
114+
($azsdkPipelineVnet + "/subnets/pipeline-subnet-win-2019-general"),
115+
($azsdkPipelineVnet + "/subnets/pipeline-subnet-win-2022-general")
116+
)
117+
109118
if (!$ServicePrincipalAuth) {
110119
# Clear secrets if not using Service Principal auth. This prevents secrets
111120
# from being passed to pre- and post-scripts.
@@ -743,13 +752,15 @@ try {
743752
if ($ProvisionerApplicationOid) {
744753
$templateParameters["provisionerApplicationOid"] = "$ProvisionerApplicationOid"
745754
}
746-
747755
if ($TenantId) {
748756
$templateParameters.Add('tenantId', $TenantId)
749757
}
750758
if ($TestApplicationSecret -and $ServicePrincipalAuth) {
751759
$templateParameters.Add('testApplicationSecret', $TestApplicationSecret)
752760
}
761+
if ($CI -and $Environment -eq 'AzureCloud') {
762+
$templateParameters.Add('azsdkPipelineSubnetList', $azsdkPipelineSubnets)
763+
}
753764

754765
$defaultCloudParameters = LoadCloudConfig $Environment
755766
MergeHashes $defaultCloudParameters $(Get-Variable templateParameters)

0 commit comments

Comments
 (0)