Hi ,
Thanks for reaching out to Microsoft Q&A.
This usually happens because authentication is looping between Azure sign-in and PAT validation in the Visual Studio Marketplace publisher flow. The system expects an existing Personal Access Token (PAT) for the publisher API, but the AAD login redirects before the PAT creation page loads, which creates a circular signin loop.
To resolve it, generate the PAT directly from the publisher management page instead of the extension publishing CLI flow. Sign in to Visual Studio Marketplace, open your publisher profile -> Security -> PAT, and create a token with marketplace (manage) scope. If the portal keeps redirecting to azure sign-in, sign out from all microsoft sessions, open a private browser window, then access the publisher page again and create the PAT. Once generated, use that token with the VS Code publishing command (for example via vsce).
Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.