Skip to content

Instantly share code, notes, and snippets.

@alventech
Last active May 30, 2021 16:24
Show Gist options
  • Save alventech/ae9bf44ec5752412dafada5a44e0b825 to your computer and use it in GitHub Desktop.
Save alventech/ae9bf44ec5752412dafada5a44e0b825 to your computer and use it in GitHub Desktop.
Azure CLI Packer Build Azure DevOps
packer --version
export subscriptionid=$(subscriptionid)
export clientAPPID=$(clientAPPID)
export clientSecret=$(clientSecret)
export tenantid=$(tenantid)
echo $subscriptionid
echo $clientSecret
echo $clientAPPID
echo $tenantid
image_version=$(date +%Y.%H%M.%S)
echo $image_version
packer build \
-var $clientAPPID =$clientAPPID \
-var clientSecret=$clientSecret \
-var tenantid=$tenantid \
-var subscriptionid=$subscriptionid \
-var image_version=$image_version \
packer_w10_20h2_SIG.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment