Repository navigation
Use organization-scoped PAT for publishing extensions - #10519
Trivikram Kamat (trivikr) wants to merge 2 commits into
Conversation
Global PATs in Azure DevOps are retired on December 1, 2026, and publishing works with a PAT scoped to a single organization. - Select a specific organization instead of "All accessible organizations" when creating the PAT, and update the screenshot - Remove the FAQ advice that picking a specific organization causes 403/401 errors - Clarify in the IMPORTANT notes that organization-scoped PATs keep working, while still recommending Entra ID
9ba2bc1 to
8bc2c2a
Compare
|
lyndaidaii Can you review this PR and verify that it's ok to publish while your related PR (#10517) is still in progress? LGTM! Trivikram Kamat (@trivikr) Waiting to merge until approval from lyndaidaii. Appreciate the contribution 🙏 |
|
Sorry, I don’t get it: I’m part of an organization, but extensions aren’t: marketplace publishers are independent of organizations. So am I supposed to just select any random organization I happen to be part of to create the token? It’s probably not super important if trusted publishing becomes available this or next month, but it would be good to clear this up before merging. |
Marketplace publishers aren't linked to Azure DevOps organizations. A publisher has no organization setting, and the Marketplace authorizes the Microsoft account that owns the PAT, which must be a publisher member. Azure DevOps just requires the PAT to be created in some organization, so you can pick any organization you belong to. I updated the docs to say this in 27feb0b. I tested with a PAT scoped to the organization that our publisher account belongs to. Could you check with one of yours? |
Thanks, yeah! Important to mention as it makes no logical sense haha! |
|
Trivikram Kamat (@trivikr), Thank you for suggesting the documentation update and for helping other extension authors navigate this. An organization-scoped PAT can serve as a temporary workaround, but we’d prefer not to add it to the VS Code publishing docs, as it isn’t the approach we recommend long term. Eventually, we are going to deprecate PAT at all with trusted publishing. We’re preparing to release Trusted Publishing, which enables publishing without a PAT, and are currently targeting next week, subject to change. We’re also working on the corresponding documentation updates, so we’d suggest pointing authors to that guidance once it’s available. We really appreciate your help improving the publishing experience! |
|
Nick Trogh (@ntrogh) Thank you for your approval. I've requested reapproval since the changes were amended above
I believe this should go out resolve microsoft/vsmarketplace#2121 which users have been waiting since June. The trusted publishing update in #10517 can follow once it's available in stable version of But the maintainers working on this would be the right ones to provide an answer. cc lyndaidaii |
Thank you, lyndaidaii, for the clarification and timeline. Closing this PR, as it'll be superseded by #10517 when trusted publishing is available in client and server. |
|
Trivikram Kamat (@trivikr), Thank you again for the time and effort you’ve put into this, and for helping improve the experience for other extension authors. |
|
Trivikram Kamat (@trivikr) Added an issue to describe the workaround and pinned it in Issues list: #10526 Appreciate the contribution! |
Refs: microsoft/vsmarketplace#2121
The "Get a Personal Access Token" steps tell publishers to create a PAT for All accessible organizations, which is a global PAT. Global PATs are retired on December 1, 2026, and publishing works with a PAT scoped to a single organization.
Changes
create-token.pngto match.