how to do automated deployment of virtual services in Devtest using Team Foundation Server and how to integrate devtest with Visual studio?
You could use the rich set of REST APIs of DevTest to deploy your Virtual Services. On the second part of your question, could you please throw some light on the use case with Visual Studio ?
Using the APIs - DevTest Solutions - 10.4 - CA Technologies Documentation
Have a look at a one such use case that uses LISA INVOKE 2 APIs to create Virtual Services.
Automatic Creation of Virtual Services - Using AppTest Test case using Lisa Invoke 2 APIs