Skip to content

Commit

Permalink
remove +x
Browse files Browse the repository at this point in the history
  • Loading branch information
junjiezhang1997 committed Mar 6, 2024
1 parent bf7a00a commit ca9681e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vhdbuilder/packer/init-variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand Down

0 comments on commit ca9681e

Please sign in to comment.