Skip to content

Commit

Permalink
cherry-pick: packer vnet RG name resolution for prod builds (#5283)
Browse files Browse the repository at this point in the history
Co-authored-by: Cameron Meissner <[email protected]>
  • Loading branch information
cameronmeissner and Cameron Meissner authored Nov 18, 2024
1 parent cdc54ce commit f4e60d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vhdbuilder/packer/init-variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ fi

if [ -z "${VNET_RG_NAME}" ]; then
if [ "$MODE" == "linuxVhdMode" ]; then
VNET_RG_NAME="nodesig-${ENVIRONMENT}-${PACKER_BUILD_LOCATION}-pool-vnet-rg"
if [ "${ENVIRONMENT,,}" == "prod" ]; then
# TODO(cameissner): build out updated pool resources in prod so we don't have to pivot like this
VNET_RG_NAME="nodesig-${ENVIRONMENT}-${PACKER_BUILD_LOCATION}-agent-pool"
else
VNET_RG_NAME="nodesig-${ENVIRONMENT}-${PACKER_BUILD_LOCATION}-pool-vnet-rg"
fi
fi
if [ "$MODE" == "windowsVhdMode" ]; then
if [[ "${POOL_NAME}" == *nodesigprod* ]]; then
Expand Down

0 comments on commit f4e60d5

Please sign in to comment.