Forum Discussion
Automate the release of Azure DevOps web extension on azure market place https://marketplace.visuals
We are encountering challenges while attempting to automate the release process of Azure DevOps web extension on azure market place https://marketplace.visualstudio.com/. Our goal is to set up an automated release of web extension on azure market place https://marketplace.visualstudio.com/. But we're not getting anything to configuring and executing the process successfully.please give me an idea how to do that?
1 Reply
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 Extensiontfx 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 Extensiontfx 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 PATsteps: - 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.