question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to login to Azure with federated credentials

See original GitHub issue

As of this morning (sometime after 10:30 CET), all pipelines that use the Azure/login@v1.4.5 action, fail to login with federated credentials:

    - name: azure-login
      uses: Azure/login@v1.4.6
      with:
        client-id: ${{ secrets.azureGithubClientId }}
        tenant-id: ${{ secrets.azureTenantId }}
        subscription-id: ${{ secrets.azureSubscriptionId }}
        enable-AzPSSession: true

results in

Run Azure/login@v1.4.5
  with:
    client-id: ***
    tenant-id: ***
    subscription-id: ***
    enable-AzPSSession: true
    environment: azurecloud
    allow-no-subscriptions: false
    audience: api://AzureADTokenExchange
Using OIDC authentication...
Federated token details: 
 issuer - https://token.actions.githubusercontent.com 
 subject claim - repo:***/***:environment:Dev
/usr/bin/az cloud set -n azurecloud
Done setting cloud: "azurecloud"
Running Azure PS Login
/usr/bin/pwsh -Command try {
            $ErrorActionPreference = "Stop"
            $WarningPreference = "SilentlyContinue"
            $output = @{}
            $data = Get-Module -Name Az.Accounts -ListAvailable | Sort-Object Version -Descending | Select-Object -First 1
            $output['AzVersion'] = $data.Version.ToString()
            $output['Success'] = "true"
        }
        catch {
            $output['Error'] = $_.exception.Message
        }
        return ConvertTo-Json $output
{
  "AzVersion": "2.10.3",
  "Success": "true"
}
Error: Azure PowerShell Login failed. Please check the credentials and make sure az is installed on the runner. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
BALAGA-GAYATRIcommented, Dec 15, 2022

As long as 1.4.6 works, there shouldn’t be any problem. @dingmeng-xue The reason for 1.4.5 failure could be this bug -https://github.com/Azure/login/releases/tag/v1.4.6. We fixed the regex pattern if you remember. @georgekosmidis We recommend using azure/login@v1 instead of using particular versions to avoid this as we update v1 tag with the latest version.

0reactions
georgekosmidiscommented, Dec 15, 2022

1.4.6 indeed works here too

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot user name issues that occur for federated users ...
Describes an issue in which a newly federated user can't sign in to Office 365, Azure, or Microsoft Intune because of user name...
Read more >
Troubleshoot account issues for federated users in Microsoft ...
Describes how to troubleshoot single sign-on (SSO) user account issues in Microsoft 365, Azure, or Microsoft Intune.
Read more >
Azure federated users unable to login to Windows 10
Azure federated users unable to login to Windows 10. We have setup our on-premise AD with ADFS to enable login for Active Directory...
Read more >
Error 80048163 when a federated user tries to sign in to ...
Describes an issue in which a federated users receive an error message when they try to sign in to Microsoft 365, Azure, or...
Read more >
"80041317" or "80043431" error when federated users sign in ...
Describes an issue in which a federated user receives an error message when they try to sign in to Microsoft 365, Azure, or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found