How to Fix Azure Portal Login Redirect Loop with GitHub SSO
Question details
The user is experiencing a continuous redirect loop between the Azure portal and Microsoft login pages when attempting to sign in using a personal GitHub account.

- Product
- Microsoft Azure
- Device & OS
- not provided
- Scenario
- Signing into the Azure Portal using a personal GitHub account.
- Observed behavior
- The login process fails and repeatedly bounces back and forth between the Azure portal and Microsoft login pages, even after clearing browser cache or cookies.
Ensure you have the correct primary email address associated with your GitHub account and try accessing the portal using an Incognito or Private browsing window to rule out stale cache issues.
Verify Identity Provider and Tenant Context
Check if your GitHub account is correctly mapped to the right Azure tenant and identity provider to break the redirect loop.
Open an Incognito or InPrivate browser window and navigate directly to the Azure Portal using your specific tenant URL (e.g., portal.azure.com/YourTenantDomain).
Select 'Sign in with GitHub' on the Microsoft login screen rather than typing your email directly into the Microsoft account prompt.
If prompted, review the Microsoft account or organization context you are signing into. Ensure you select the personal account associated with your GitHub SSO, not a workplace Microsoft 365 account.

Check Azure Authentication Logs via Alternative Admin
If you have an alternative admin account, check the sign-in logs to identify the exact cause of the redirect failure.
Request Help to Unlink GitHub and Reclaim Email
If you are completely locked out and stuck in a Microsoft 365 environment loop, you may need Microsoft Support to manually unlink the GitHub identity.
Experience Hassle-Free Productivity with WPS Office
Login loops and cloud SSO issues can disrupt your workflow. If you're tired of complex Microsoft 365 environment setups and mandatory cloud logins, switch to WPS Office. It provides a lightweight, offline-capable, and completely free alternative for all your document, spreadsheet, and presentation needs.
- 1. Download the Installer: Visit the official WPS Office website and click the 'Download' button for your operating system.
- 2. Run the Setup: Open the downloaded installer file and follow the straightforward on-screen instructions.
- 3. Start Creating: Launch WPS Office and instantly open your existing Microsoft Office files without mandatory cloud logins.

Frequently Asked Questions
Why does my personal GitHub account cause an Azure redirect loop?
This usually happens when there is a mismatch between the identity provider linked to your Azure tenant and your current browser session, or if you accidentally authenticated into a Microsoft 365 environment instead of your Azure subscription.
Can I unlink my GitHub account from Azure and use an email instead?
Yes, but if you are locked out due to the redirect loop, you typically need to contact Microsoft Support to manually remove the GitHub identity association and reset your login to a standard Microsoft account using that email.
Will clearing my browser cache fix the Azure SSO login loop?
Sometimes. Clearing cookies and cache or using an Incognito window forces Azure to prompt for new credentials, which can bypass stale authentication tokens causing the loop. However, backend tenant misconfigurations will still require admin intervention.




