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.
visual studio 2026 cannot push to Azure DevOps. authorization failed
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
-
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
and click on Yes for was this answer helpful. And, if you have any further query do let us know.