Unable to login to Azure with federated credentials
See original GitHub issueAs 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:
- Created 9 months ago
- Comments:11 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.1.4.6 indeed works here too