Skip to content

Commit 210b87b

Browse files
committed
installation id
1 parent 1ac243c commit 210b87b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

shell/agents/Microsoft.Azure.Agent/Telemetry.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ internal static void Initialize()
1717
{
1818
InstallationId = null;
1919

20-
string azureConfigDir = Environment.GetEnvironmentVariable("AZURE_CONFIG_DIR")
21-
?? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".azure");
22-
string azCLIProfilePath = Path.Combine(azureConfigDir, "azureProfile.json");
23-
string azPSHProfilePath = Path.Combine(azureConfigDir, "AzureRmContextSettings.json");
20+
string azureConfigDir = Environment.GetEnvironmentVariable("AZURE_CONFIG_DIR");
21+
string userProfile = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
22+
string azCLIProfilePath = azureConfigDir ?? Path.Combine(userProfile, ".azure", "azureProfile.json");
23+
string azPSHProfilePath = azureConfigDir ?? Path.Combine(userProfile, ".Azure", "AzureRmContextSettings.json");
2424

2525
try
2626
{

0 commit comments

Comments
 (0)