You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-conceptual/azps-1.4.0/authenticate-azureps.md
+15-14Lines changed: 15 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -30,18 +30,10 @@ Connect-AzAccount
30
30
When run, this cmdlet will present a token string. To sign in, copy this string and paste it into https://microsoft.com/devicelogin in a browser. Your PowerShell session will
31
31
be authenticated to connect to Azure.
32
32
33
-
## Sign in with credentials
34
-
35
-
You can also sign in with a `PSCredential` object authorized to connect to Azure.
36
-
The easiest way to get a credential object is with the [Get-Credential](/powershell/module/Microsoft.PowerShell.Security/Get-Credential) cmdlet. When run, this cmdlet will prompt you for a username/password credential pair.
37
-
38
-
> [!Note]
39
-
> This approach doesn't work with Microsoft accounts or accounts that have two-factor authentication enabled.
40
-
41
-
```azurepowershell-interactive
42
-
$creds = Get-Credential
43
-
Connect-AzAccount -Credential $creds
44
-
```
33
+
> [!IMPORTANT]
34
+
>
35
+
> Username/password credential authorization has been removed in Azure PowerShell due to changes in Active Directory authorization implementations and security concerns.
36
+
> If you use credential authorization for automation purposes, instead [create a service principal](create-azure-service-principal-azureps.md).
45
37
46
38
## Sign in with a service principal <aname="sp-signin"/>
0 commit comments