[英]With Azure auto-scaling do I need to specify a MachineKey in web.config?
For a ASP.NET MVC project I worked on recently it was deployed to multiple server instances and required to have a machinekey configured. 对于我最近工作的ASP.NET MVC项目,它已部署到多个服务器实例,并且需要配置机器密钥。
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. 我有另一个项目将部署到Azure(网站标准),我不确定Azure是否为您配置了一个机器密钥或者在内部处理这种事情,或者您是否必须配置一个。
Does anyone know. 有人知道吗。 I can't seem to find any resources specifically about this. 我似乎无法找到任何具体的资源。
Azure will automatically set the same machinekey for all instances of a WebRole so you don't need to explicitly set it. Azure将自动为WebRole的所有实例设置相同的机器密钥,因此您无需显式设置它。 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. 但是,如果删除并重新部署或执行VIP交换,则机器密钥将更改,这可能会导致现有客户端出现问题,因此您应为此方案设置机器密钥。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.