简体   繁体   English

使用Azure自动扩展,我需要在web.config中指定MachineKey吗?

[英]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.

相关问题 Azure SignalR 自动缩放 - Azure SignalR Auto-scaling 如何指定Azure函数通常在web.config中会显示什么? - How do I specify what would normally be in web.config for an Azure Function? 除了在web.config中编写的代码之外,我还需要将Azure上托管的网站重定向到https - Do I need anything besides code written in web.config to redirect website hosted on azure to https 如果我使用Azure网站的自动缩放功能,我是否需要设置特定的机器密钥? - If I use the auto scaling features of Azure Web Sites do I need to set a specific machine key? 垂直自动缩放Azure VM - Vertical auto-scaling Azure VM 我是否需要在web.config中向ApplicationInitialization添加端口 - Do I need to add a port to ApplicationInitialization in web.config 在Azure中自动缩放VM-仅包含一个虚拟机,但是我有两个? - Auto-scaling VMs in Azure--only contains one virtual machine, but I have two? Azure上自动扩展虚拟机:日复一日 - Auto-scaling virtual machine on Azure: Day In & Day Out Azure 应用服务自动缩放 - 处理新的出站 IP - Azure App Service Auto-Scaling - handle new outbound IP Azure Kube.netes - 自动缩放和节点选择器、污染和容忍? - Azure Kubernetes - Auto-scaling & Nodeselector, Taint and Tolerance?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM