Share via

visual studio 2026 cannot push to Azure DevOps. authorization failed

Mark Levin 0 Reputation points
2026-03-25T15:47:45.5533333+00:00

Upgraded to Visual Studio 2026. I no longer can push new code to Azure DevOps. Message is "authorization failed."

Azure DevOps

2 answers

Sort by: Most helpful
  1. Yutaka_K_JP 1,655 Reputation points
    2026-03-26T22:38:17.63+00:00

    I think vs2026 cut the devops auth‑link u rely on… re‑signin once n delete the lone “git:dev.azure.com” in windows creds. If it still fails, reset gcm in vs account settings so the chain rebuilds.

    0 comments No comments

  2. Pravallika KV 13,135 Reputation points Microsoft External Staff Moderator
    2026-03-25T17:15:05.5833333+00:00

    Hi @Mark Levin ,

    Thanks for reaching out to Microsoft Q&A.

    After upgrading to Visual Studio 2026, your cached credentials or tokens may no longer be valid and leading to “authorization failed” error when pushing to Azure DevOps.

    To fix this, sign out and back in inside VS: In Team Explorer (or Git =>Manage Connections), sign out of all Azure DevOps/Azure AD accounts and sign back in, making sure you pick your actual UPN and complete any MFA prompts.

    On Windows, open Credential Manager => Windows Credentials =>delete any “git:https://dev.azure.com/…” or “VSS…” entries.

    In VS go to Git Settings =>Global Settings =>Clear Credential Cache.

    If you push over HTTPS, generate a new Personal Access Token (PAT) in Azure DevOps (scopes: Code [read & write]). Then update your repo’s remote URL or re-enter credentials when prompted.

    Hope this helps!


    If the resolution was helpful, kindly take a moment to click on User's imageand click on Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.