Skip to content

Commit

Permalink
added missing comment to critical code block
Browse files Browse the repository at this point in the history
  • Loading branch information
markusheiliger committed Apr 1, 2020
1 parent 7374802 commit c2db6de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/TeamCloud.Azure/AzureSessionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ public Task<string> AcquireTokenAsync(AzureEndpoint azureEndpoint = AzureEndpoin
}
else
{
// ensure we disable SSL verfication for this process when using the Azure CLI to aqcuire MSI token.
// otherwise our code will fail in dev scenarios where a dev proxy like fiddler is running to sniff
// http traffix between our services or between service and other reset apis (e.g. Azure)

System.Environment.SetEnvironmentVariable("AZURE_CLI_DISABLE_CONNECTION_VERIFICATION", "1", EnvironmentVariableTarget.Process);

tokenProvider = new AzureServiceTokenProvider("RunAs=Developer;DeveloperTool=AzureCLI");
Expand Down

0 comments on commit c2db6de

Please sign in to comment.