title: az devops login hangs
body: <p>I'm working on Windows 10, Azure PowerShell Az module, DevOps extension 0.18.0</p>
  <p>I am logged into a DevOps instance and able to run all related commands.  Now, I need to login to a different org / project.  Every time I execute the login subcommand the window hangs and locks up, I have to restart the PowerShell ISE to try again.</p>
  <p>The commands I'm working with (I've tried several variations) are:</p>
  <pre><code>&gt; az login 
  &gt; $env:AZURE_DEVOPS_EXT_PAT ='{PAT}' 
  &gt; az devops login --organization https://dev.azure.com/{org} --debug
  </code></pre>
  <p>HANGS here!!</p>
  <p>Debug logs below</p>
  <blockquote>
  <p>az devops login --organization <a href="https://dev.azure.com/%7Borg%7D" rel="nofollow noreferrer">https://dev.azure.com/{org}</a> --debug</p>
  <pre><code>CategoryInfo          : NotSpecified: (Command argumen...nn', '--debug']:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError   Event: Cli.PreExecute [] Event: CommandParser.OnGlobalArgumentsCreate
  [&lt;function CLILogging.on_global_arguments at 0x03A171E0&gt;, &lt;function 
  OutputProducer.on_global_arguments at 0x03B3AA98&gt;, &lt;function
  CLIQuery.on_global_arguments at 0x03B5CCD8&gt;] Event:
  CommandInvoker.OnPreCommandTableCreate [] Modules found from index for
  'devops': ['azext_devops'] Loading command modules: Name              
  Load Time    Groups  Commands Total (0)                 0.000        
  0         0 These extensions are not installed and will be skipped:
  ['azext_ai_examples', 'azext_ai_did_you_mean_this'] Loading
  extensions: Name                  Load Time    Groups  Commands 
  Directory azure-devops              0.110        60       191 
  C:\Users\{username}\.azure\cliextensions\azure-devops Total (1)          
  0.110        60       191   Loaded 60 groups, 191 commands. Found a match in the command table for 'devops login' Event:
  CommandInvoker.OnPreCommandTableTruncate [&lt;function
  AzCliLogging.init_command_file_logging at 0x03C2B978&gt;]
  az_command_data_logger : command args: devops login --organization {}
  --debug metadata file logging enabled - writing logs to 'C:\Users\{username}\.azure\commands'. Event:
  CommandInvoker.OnPreArgumentLoad [&lt;function
  register_global_subscription_argument.&lt;locals&gt;.add_subscription_parameter
  at 0x03D69660&gt;] Event: CommandInvoker.OnPostArgumentLoad [] Event:
  CommandInvoker.OnPostCommandTableCreate [&lt;function
  register_ids_argument.&lt;locals&gt;.add_ids_arguments at 0x03D69618&gt;,
  &lt;function  register_cache_arguments.&lt;locals&gt;.add_cache_arguments at
  0x03D69E40&gt;] Event: CommandInvoker.OnCommandTableLoaded [] Event:
  CommandInvoker.OnPreParseArgs [] Event: CommandInvoker.OnPostParseArgs
  [&lt;function OutputProducer.handle_output_argument at 0x03B3AAE0&gt;,
  &lt;function CLIQuery.handle_query_parameter  at 0x03B5CD20&gt;, &lt;function
  register_ids_argument.&lt;locals&gt;.parse_ids_arguments at 0x03D69DF8&gt;,
  &lt;function DevCommandsLoader.post_parse_args at  0x03CF6150&gt;]
  az_command_data_logger : extension name: azure-devops
  az_command_data_logger : extension version: 0.18.0
  </code></pre>
  </blockquote>
  <ul>
  <li>I've restarted windows 10</li>
  <li>I've logged out of az (az logout)</li>
  <li>I've logged out of devops (az devops logout)</li>
  <li>I always run the PowerShell ISE in an elevated permission
  (administrator)</li>
  </ul>
  <p>I've confirmed after all of this, I can still access DevOps (pipelines, releases, etc.) from the org/project I started from. so logout is failing as well.</p>
  <p>What is going on? Any ideas why this is happening?</p>