From f4296db032b8da3fb616926c1a3b44de38aedbd8 Mon Sep 17 00:00:00 2001 From: V-Zabayrachny <79155496+V-Zabayrachny@users.noreply.github.com> Date: Tue, 2 Nov 2021 19:29:24 +0300 Subject: [PATCH] Fix software report for azure-cli (#4401) --- images/macos/software-report/SoftwareReport.Common.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/macos/software-report/SoftwareReport.Common.psm1 b/images/macos/software-report/SoftwareReport.Common.psm1 index 782b137f..8ed019f9 100644 --- a/images/macos/software-report/SoftwareReport.Common.psm1 +++ b/images/macos/software-report/SoftwareReport.Common.psm1 @@ -418,7 +418,7 @@ function Get-AppCenterCLIVersion { } function Get-AzureCLIVersion { - $azureCLIVersion = Run-Command "az -v" | Select-String "^azure-cli" | Take-Part -Part 1 + $azureCLIVersion = (az version | ConvertFrom-Json).'azure-cli' return "Azure CLI $azureCLIVersion" }