Skip to content

Commit

Permalink
add az-cli for capz windows images
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBrito committed Oct 16, 2023
1 parent abf5674 commit a52b478
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions images/capi/ansible/windows/roles/providers/tasks/azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,9 @@
members: "{{ users }}"
vars:
users: "{{ wire_server_users.split(',') if (wire_server_users is defined) and (wire_server_users | length > 0) else [] }}"

- name: Install Azure CLI via MSI Installer
ansible.windows.win_package:
path: https://azcliprod.blob.core.windows.net/msi/azure-cli-2.53.0-x64.msi
state: present
product_id: '{1E1EB8CF-831A-41AD-8ABE-640D72AB3D04}'
3 changes: 3 additions & 0 deletions images/capi/packer/goss/goss-command.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ command:
stdout:
- "ICcgDomainAuthCredentials"
timeout: 30000
Check Azure CLI is installed:
exec: powershell -command "& 'C:\\Program Files\\Microsoft SDKs\\Azure\\CLI2\\wbin\\az.cmd'"
exit-status: 0
{{end}}

{{ if ne .Vars.ssh_source_url "" }}
Expand Down

0 comments on commit a52b478

Please sign in to comment.