-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't install Azure CLI by default #1458
Conversation
/cc @jsturtevant FYI this doesn't apply to Windows currently. Should it? |
What doesn't apply? We do install azure cli on Windows: #1326 |
Sorry, I meant that I didn't wire this up to not install on Windows; it still does so by default. Say the word and I'll try to make Windows images have the same default and option. |
It will only be installed if the Packer `debug_tools` variable is `true`.
Updated to act the same way in Windows. |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsturtevant The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold |
/hold cancel |
Change description
The
az
CLI isn't necessary for Azure images to run, it's more of a troubleshooting or debugging tool, so let's not install it by default. You can still install it by enabling thedebug_tools
variable, for example:Related issues
az
on Ubuntu 24.04 yet)Additional context
I wasn't sure how to test conditionally for the
azure-cli
package in Goss, so I removed it to match the default. If you have an idea how to keep this as a conditional test, please let me know!Also this doesn't apply to Windows images currently because I wasn't positive that
az
wasn't actually required there. But maybe I should extend this behavior to Windows images as well? Feedback welcome.