I need to publish a Visual Studio extension to VS market place through the TFS CI build pipeline. I found following article on publishing extension to market place using command line, is there any deployment task in TFS which can use for this?
Publish from the command line
You can use the Visual Studio Team Services Developer Tools for Build and Release tasks.
Make sure you generate the PAT with teh correct permissions. In order to publish extensions you'll need "Marketplace (Publish)", in order to install/share/query extensions you'll need further permissions. The required permissions are documented in the "Add Service" window.