logo
search
Sign-in & Login Problems

How to Fix Azure Portal Login Redirect Loop with GitHub SSO

Aamir Naveed AkramAamir Naveed Akram Sep 28, 2026 869 views

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.

How to Fix Azure Portal Login Redirect Loop with GitHub SSO
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.
Before you start

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.

Solution 1Recommended

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.

1
Use a private browsing window

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).

2
Sign in with GitHub

Select 'Sign in with GitHub' on the Microsoft login screen rather than typing your email directly into the Microsoft account prompt.

3
Review organization context

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.

Verify Identity Provider and Tenant Context
GitHub Enterprise Warning: Documentation for GitHub Enterprise Cloud SSO may not apply if you originally registered your Azure account with a personal GitHub ID.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and click the 'Download' button for your operating system.
  2. 2. Run the Setup: Open the downloaded installer file and follow the straightforward on-screen instructions.
  3. 3. Start Creating: Launch WPS Office and instantly open your existing Microsoft Office files without mandatory cloud logins.
No complex cloud login loops or SSO configuration required to edit local files.Fully compatible with Microsoft Office file formats (.docx, .xlsx, .pptx).Lightweight software that runs smoothly on Windows, Mac, and Linux.All-in-one suite combining Writer, Spreadsheet, Presentation, and PDF tools.
microsoft office alternative - wps office

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.