简体   繁体   中英

How do I set ARR affinity for an Azure cloud service?

I have a web role in a cloud service with 2 instances.

I have a function that creates files in one instance and switches to the other mid-function, causing 404 errors because it can't find the files.

In Azure Web Apps, there is a setting in the Azure Portal to turn ARR Affinity on or off. I don't see anything like that in Azure Cloud Services.

For cloud services, you'll need to install it manually by yourself on your startup task of csdef file. ARR is not installed by default for IIS.

You can refer to this article for more information (from step 4).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM