How do I do per-instance Azure Worker-Role configuration?

醉酒当歌 提交于 2019-12-25 04:01:06

问题


In need to deploy 3 different worker roles but each needs it's own configuration (user name, password, etc.) to connect to a trading server. I can't share the credentials across the instances.

If anyone knows how to accomplish this I would be very appreciative!

Thanks...


回答1:


Do you mean you have 1 Worker Role with 3 instances? You should switch to 3 Worker Roles instead (different projects in Visual Studio). This allows you to configure each Worker Role independently (double click each Worker Role in the Azure project and go to the settings tab). Your common code can be in a shared assembly referenced by all 3 Worker Roles.



来源:https://stackoverflow.com/questions/12611547/how-do-i-do-per-instance-azure-worker-role-configuration

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