From ca9681e837464ff99c1c0d9119accdb92e7caeb4 Mon Sep 17 00:00:00 2001 From: Junjie Zhang Date: Wed, 6 Mar 2024 08:30:57 +0000 Subject: [PATCH] remove +x --- vhdbuilder/packer/init-variables.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/vhdbuilder/packer/init-variables.sh b/vhdbuilder/packer/init-variables.sh index 005400eecef..f0bb8688bd6 100755 --- a/vhdbuilder/packer/init-variables.sh +++ b/vhdbuilder/packer/init-variables.sh @@ -304,10 +304,8 @@ if [ "$OS_TYPE" == "Windows" ]; then echo "Generating sas token to copy Windows base image" expiry_date=$(date -u -d "20 minutes" '+%Y-%m-%dT%H:%MZ') echo "Copy Windows base image to ${WINDOWS_IMAGE_URL}" - set +x sas_token=$(az storage account generate-sas --account-name ${STORAGE_ACCOUNT_NAME} --permissions cw --account-key "$key" --resource-types o --services b --expiry ${expiry_date} | tr -d '"') azcopy-preview copy "${WINDOWS_BASE_IMAGE_URL}" "${WINDOWS_IMAGE_URL}?${sas_token}" - set -x # https://www.packer.io/plugins/builders/azure/arm#image_url # WINDOWS_IMAGE_URL to a custom VHD to use for your base image. If this value is set, image_publisher, image_offer, image_sku, or image_version should not be set. WINDOWS_IMAGE_PUBLISHER=""