diff --git a/src/AzureExtension/Services/DevBox/AuthService.cs b/src/AzureExtension/Services/DevBox/AuthService.cs index adcfe0a6..5a619770 100644 --- a/src/AzureExtension/Services/DevBox/AuthService.cs +++ b/src/AzureExtension/Services/DevBox/AuthService.cs @@ -39,7 +39,9 @@ public AuthService(IHttpClientFactory httpClientFactory, IArmTokenService armTok if (!IsTest()) { - var agentHeader = new ProductInfoHeaderValue(Package.Current.Id.Name, Package.Current.Id.Version.ToString()); + var version = Package.Current.Id.Version; + var versionString = version.Build + "." + version.Major + "." + version.Minor + "." + version.Revision; + var agentHeader = new ProductInfoHeaderValue(Package.Current.Id.Name, versionString); _httpArmClient.DefaultRequestHeaders.UserAgent.Add(agentHeader); _httpDataClient.DefaultRequestHeaders.UserAgent.Add(agentHeader); }