Forum Discussion
Automate the release of Azure DevOps web extension on azure market place https://marketplace.visuals
Consider below to automate Azure DevOps Extension release:
1. Prepare Your Extension
• Make sure your extension is properly structured with a vss-extension.json manifest file.
• Use the Azure DevOps Extension SDK if needed.
2. Install the tfx-cli Tool
This is the official CLI tool for packaging and publishing extensions.
npm install -g tfx-cli
3. Package the Extension
tfx extension create --manifest-globs vss-extension.json
This will generate a .vsix file.
4. Set Up a Personal Access Token (PAT)
• Go to Azure DevOps > User Settings > Personal Access Tokens
• Create a token with Marketplace (publish) scope
5. Publish the Extension
tfx extension publish --vsix [your-extension].vsix --publisher [your-publisher-id] --token [your-PAT]
You can also use --share-with to share with specific organizations.
Automate with Azure Pipelines
Create a release pipeline that:
• Builds your extension
• Packages it with tfx-cli
• Publishes it using the CLI and your PAT
steps:
- script: |
npm install -g tfx-cli
tfx extension create --manifest-globs vss-extension.json
tfx extension publish --vsix my-extension.vsix --publisher myPublisher --token $(marketplaceToken)
displayName: 'Publish Extension'
Make sure marketplaceToken is stored securely in your pipeline secrets.