microsoft / microsoft/winget-cli

version number 'unknown' for azure VPN client (msstore) 3.1.2

Open
#3,427 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug msstore
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

Winget wont list the version number for azure VPN client and deploying via Intune throws an error.

Steps to reproduce

winget show "azure vpn client" --versions

This will produce below:

Found Azure VPN Client [9NP355QT2SQB]
Version
-------
Unknown

tested with winget versions: 1.4.11071 and updated to version 1.5.1881 and tested produced same result.

if I use the search option:

winget search "azure vpn client"

get below result

Name             Id           Version Source
----------------------------------------------
Azure VPN Client 9NP355QT2SQB Unknown msstore

If I install the app via Microsoft Store and then use winget to List it will produce below

PS C:\Users\GihanDewaraja> winget list "azure vpn client"
Name             Id           Version Source
----------------------------------------------
Azure VPN Client 9NP355QT2SQB 3.1.3.0 msstore

Because of this issue, we cant version pin an app using the version number. and the ID points to Microsoft Store ID instead of the ID displayed for other apps. for instance if I search for Docker CLI I get below result.

Name       Id               Version Source
-------------------------------------------
Docker CLI Docker.DockerCLI 24.0.2  winget

The source here is winget so may be this is a store to winget translation issue?

similarly, when we deploy apps to Intune using 'Windows app (Win 32)' method, we get below error on our deployment log.

Transcript started, output file is C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\Azure VPN Client_Install.log
Winget already installed, moving on
Found Azure VPN Client [9NP355QT2SQB] Version Unknown
This package is provided through Microsoft Store. winget may need to acquire the package from Microsoft Store on behalf
of the current user.
Agreements for Azure VPN Client [9NP355QT2SQB] Version Unknown
Version: Unknown
Publisher: Microsoft Corporation
Publisher Url: https://microsoft.com/
Publisher Support Url: https://microsoft.com/
Description: The Azure VPN Client lets you connect to Azure securely from anywhere in the world. It supports Azure Activ
e Directory, certificate-based and RADIUS authentication.
License: ms-windows-store://pdp/?ProductId=9NP355QT2SQB
Privacy Url: https://privacy.microsoft.com/en-us/privacystatement
Agreements:
Category: Productivity
Pricing: Free
Free Trial: No
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
Seizure Warning: https://aka.ms/microsoft-store-seizure-warning
Store License Terms: https://aka.ms/microsoft-store-license


Verifying/Requesting package acquisition...
An unexpected error occurred while executing the command:
0x80070520 : unknown error
**********************
Windows PowerShell transcript end
End time: 20230712102612
**********************

Not sure the second unknown error 0x80070520 we get on our deployment logs also related to this.

I have tested this on several computers producing same output.

Especially the Intune deployment produced the same output for VPN Client. Modified the script to one liner, Only command running via PowerShell was:

Invoke-Expression ".\winget.exe install --name 'Azure VPN Client' --silent --accept-source-agreements --accept-package-agreements"

and it still produced the same output with unknown error 0x80070520

Expected behavior

Expected to have a version number 3.1.3 rather 'Unknown'

Actual behavior

As mentioned above, gets 'Unknown' for version.

And creating a deployment package using IntuneWinAppUtil.exe produce an intunewin file that we deploy using Intune throws the above 0x80070520 : unknown error.

Environment
Windows 11, 22H2

OS Name:                   Microsoft Windows 11 Enterprise
OS Version:                10.0.22621 N/A Build 22621
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Original Install Date:     18/05/2023, 10:54:19 AM
System Boot Time:          11/07/2023, 11:54:01 AM
System Manufacturer:       HP
System Model:              HP Z2 Mini G9 Workstation Desktop PC
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 151 Stepping 2 GenuineIntel ~3200 Mhz
BIOS Version:              HP U50 Ver. 02.01.02, 2/03/2023
Windows Directory:         C:\WINDOWS
System Directory:          C:\WINDOWS\system32
Boot Device:               \Device\HarddiskVolume2
System Locale:             en-au;English (Australia)
Time Zone:                 (UTC+10:00) Canberra, Melbourne, Sydney
Total Physical Memory:     32,473 MB
Available Physical Memory: 20,805 MB
Virtual Memory: Max Size:  34,521 MB
Virtual Memory: Available: 20,636 MB
Virtual Memory: In Use:    13,885 MB
Page File Location(s):     C:\pagefile.sys

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with winget show "azure vpn client" --versions, winget search, and winget list on the stated Windows environment, then compare the Microsoft Store results with the install behavior. Done means the Azure VPN Client reports version 3.1.3 rather than Unknown and the reported deployment behavior is clarified or corrected, including whether error 0x80070520 is related.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.