Deploy just one role in Azure service project

谁都会走 提交于 2020-01-24 21:29:07

问题


Sorry I'm just starting out with Azure, hopefully the following question makes sense.

I have an Azure project with 3 roles. I'd need to deploy one of them right now, but the other 2 roles are far from being ready and I'd have no use in deploying them at the moment (and that would also make me pay for 3 instances, right?)

Would Visual Studio let me deploy just the role I'm interested in?

If not, is there a way to temporarely remove the other roles without losing their settings?

(Thank you for your answer Richard, I was hoping I could — for example — just comment out parts of the ServiceDefinition / ServiceConfiguration files to tell VS not to package the extra roles.)


回答1:


Just delete the projects you don't want to deploy from the 'roles' folder of your Cloud project, and they should be ignored.

You can easily add them back in when you're ready to use them.



来源:https://stackoverflow.com/questions/7469570/deploy-just-one-role-in-azure-service-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!