diff --git a/.github/workflows/fpx-azure-marketplace-release.yml b/.github/workflows/fpx-azure-marketplace-release.yml index bfff2321..96e3fbdc 100644 --- a/.github/workflows/fpx-azure-marketplace-release.yml +++ b/.github/workflows/fpx-azure-marketplace-release.yml @@ -37,8 +37,8 @@ jobs: $marketplaceVersionsUI = @() $versions = Get-AzVMImage -PublisherName "${env:PUBLISHER}" -Location eastus -Offer "${env:PRODUCTOFFER}" -sku "${env:PRODUCTSKU}" - $marketplaceVersions += $($versions | Where-Object {$_.Version.StartsWith("7.0")} | Sort-Object -Unique -Property Version | Select-Object -Last 2).Version - $marketplaceVersions += $($versions | Where-Object {$_.Version.StartsWith("7.2")} | Sort-Object -Unique -Property Version | Select-Object -Last 2).Version + $marketplaceVersions += $($versions | Where-Object {$_.Version.StartsWith("7.0")} | Sort-Object -Unique { $_.Version -as [version]} | Select-Object -Last 2).Version + $marketplaceVersions += $($versions | Where-Object {$_.Version.StartsWith("7.2")} | Sort-Object -Unique { $_.Version -as [version]} | Select-Object -Last 2).Version $marketplaceVersions += "latest" $marketplaceVersions | ForEach-Object { $marketplaceVersionsUI += [pscustomobject]@{label=$_;value=$_} }