From 2b971a7d2225db56d61152f41d4f66ad314b2c10 Mon Sep 17 00:00:00 2001 From: jason1028kr Date: Wed, 29 Jan 2025 17:38:54 -0800 Subject: [PATCH] nit: hide testvm password --- vhdbuilder/packer/test/run-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vhdbuilder/packer/test/run-test.sh b/vhdbuilder/packer/test/run-test.sh index f0b917ed8a4..7b2a750ae72 100755 --- a/vhdbuilder/packer/test/run-test.sh +++ b/vhdbuilder/packer/test/run-test.sh @@ -80,6 +80,7 @@ if [ "${OS_TYPE}" == "Linux" ] && [ ${IMG_SKU} == "20_04-lts-cvm" ]; then TARGET_COMMAND_STRING="--size Standard_DC8ads_v5 --security-type ConfidentialVM --enable-secure-boot true --enable-vtpm true --os-disk-security-encryption-type VMGuestStateOnly --specialized true" fi +set +x if [ "${OS_TYPE,,}" == "linux" ]; then # in linux mode, explicitly create the NIC referencing the existing packer subnet to be attached to the testing VM so we avoid creating ephemeral vnets PACKER_SUBNET_ID="/subscriptions/${SUBSCRIPTION_ID}/resourceGroups/${PACKER_VNET_RESOURCE_GROUP_NAME}/providers/Microsoft.Network/virtualNetworks/${PACKER_VNET_NAME}/subnets/packer" @@ -110,8 +111,7 @@ else --public-ip-address "" \ ${TARGET_COMMAND_STRING} fi - -echo "VHD test VM username: $TEST_VM_ADMIN_USERNAME, password: $TEST_VM_ADMIN_PASSWORD" +set -x time az vm wait -g "$TEST_VM_RESOURCE_GROUP_NAME" -n "$VM_NAME" --created capture_benchmark "${SCRIPT_NAME}_create_test_vm"