With Azure auto-scaling do I need to specify a MachineKey in web.config?

江枫思渺然 提交于 2019-12-10 17:23:18

问题


For a ASP.NET MVC project I worked on recently it was deployed to multiple server instances and required to have a machinekey configured.

I have another project which will be deployed onto Azure (Web site standard) and I'm not sure if Azure configures a machinekey for you or handles that kind of thing internally itself or if you have to configure one.

Does anyone know. I can't seem to find any resources specifically about this.


回答1:


Azure will automatically set the same machinekey for all instances of a WebRole so you don't need to explicitly set it. However, if you delete and redeploy or do a VIP swap then the machinekey will change which could cause problems with existing clients so you should set a machinekey for this scenario.



来源:https://stackoverflow.com/questions/19085726/with-azure-auto-scaling-do-i-need-to-specify-a-machinekey-in-web-config

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