title: Connect-AzAccount - how to avoid azure device authentication?
body: <p>I have installed the PowerShell 6.1.3 version and
  I want to get a connection to the Azure account using the following Azure PowerShell command: </p>
  
  <pre><code>Connect-AzAccount -Tenant &lt;tenantId&gt; -Subscription &lt;subId&gt;
  </code></pre>
  
  <p>After entering this command I get the warning with the url and some code.
  Then I have to go to the URL and enter the code there. After that, I get a connection to the Azure account. </p>
  
  <p><strong>Are there any ways to avoid this confirmation?</strong> </p>
  
  <p>I've also tried to do it using the following command: </p>
  
  <pre><code>az login -u &lt;username&gt; -p &lt;password&gt;
  </code></pre>
  
  <p>This command only returns some account information(subscriptionId, tenantId etc) but it doesn't install a connection to this account.</p>