Last active
May 30, 2021 16:24
-
-
Save alventech/ae9bf44ec5752412dafada5a44e0b825 to your computer and use it in GitHub Desktop.
Azure CLI Packer Build Azure DevOps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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