Skip to content

Commit

Permalink
Update auth.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric05 authored May 14, 2024
1 parent 30c96dd commit da7ff02
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@ Azure supports multiple types of authentication mechanisms. dothttp supports thr

dothttp leverages azure cli for getting auth token

#### Azure CLI Authentication Issue

When using Azure CLI for authentication, it utilizes the 'az' command to generate an access token. However, in Windows environments, Azure CLI checks for updates to the azure-cli package. If an update is available, it prompts the user for input.

In Windows, when utilizing `cmd`, it opens a new terminal instance, which leads Azure CLI to believe that a tty is available. Consequently, it prompts the user for input, causing requests to hang.

To mitigate this issue, it's recommended to disable automatic updates by executing the following command:

`az config set auto-upgrade.enable=no`

Subsequently, ensure to manually update Azure CLI as needed to ensure smooth functionality with Dothttp.

#### Syntax

`azurecli(<scope>)`
Expand Down

0 comments on commit da7ff02

Please sign in to comment.