Skip to content

Update Azure CLI version check method - #309

Open
Ben Magazino (BenMagazino) wants to merge 1 commit into
microsoft:mainfrom
BenMagazino:patch-1
Open

Update Azure CLI version check method#309
Ben Magazino (BenMagazino) wants to merge 1 commit into
microsoft:mainfrom
BenMagazino:patch-1

Conversation

@BenMagazino

Copy link
Copy Markdown

This method is compatible when not only running PowerShell in BASH, but also from CMD in Windows.

Found that line 13 in this PowerShell script was not compatible with PowerShell (7.6.5) running on Windows, but it was compatible with running PowerShell running in BASH. Bypassing the use of querying JMESPath with PowerShell native cmdlets offers greater cross-platform compatibility.

This method is compatible when not only running PowerShell in BASH, but also from CMD in Windows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant