Azure / Azure/azure-powershell

Az.Account 3.0.0 - Connect-AzAccount WAM - Always fails when typing password for first time

Open
#25,023 0 comments 0 reactions 0 assignees View on GitHub
Accounts bug customer-reported WAM
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description

Using Module Az.Account 3.0.0 and then CmdLet Connect-AzAccount, the new WAM gives a Popup towards the AD FederationServer but this ALWAYS fails when typing the correct password for first time. There is no error, just automatically the same Popup again on the AD FederationServer asking for the password which (when you have this in the same Popup for the 2nd time) works correct and passes on in the next screen of the popup to MFA.

### Issue script & Debug output

```PowerShell
Connect-AzAccount -TenantId [GUID] -SubscriptionId [GUID]
Skipped due to sensitive information.
```

### Environment data

```PowerShell
Name Value
---- -----
PSVersion 7.4.2
PSEdition Core
GitCommitId 7.4.2
OS Microsoft Windows 10.0.22621
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
```

### Module versions

```PowerShell
Name Version
---- -------
Az.Accounts 3.0.0
CimCmdlets 7.0.0.0
Microsoft.PowerShell.Management 7.0.0.0
Microsoft.PowerShell.Utility 7.0.0.0
PSReadLine 2.2.6
```

### Error output

```PowerShell
Message : This command cannot find a matching alias because an alias with the name 'Edit-ProfileFile' does not exist.
StackTrace :
Exception : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Alias}
```

Contributor guide

Open the contributing guide

Research direction

Start at the Connect-AzAccount entry point and reproduce the first-password WAM flow using the reported Az.Accounts 3.0.0, PowerShell 7.4.2, and Windows 10 environment. Trace why the initial correct password returns to the federation-server prompt; done means the first attempt proceeds to MFA without a second prompt and the reported behavior is covered by verification.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.