Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do multiple instances of a single Azure Web App share a single disk?

I'm developing an app in in Azure Web Apps (formerly Websites) and want to be sure I understand how the local disk is used in a multiple instance scenario. When I scale to multiple instances, do they share a single virtual disk with all of the app files?

Consider this example:

  • An app running on 5 instances
  • A page in the app that uploads a file to the local disk, say to Server.MapPath("~/Content") (I know Storage would be better, but just for concept)
  • Will all 5 instances have access to this file, or will it only exist on the instance where it was uploaded?
like image 403
Daniel Avatar asked Jan 18 '26 15:01

Daniel


1 Answers

Yes, all your instances will be sharing the same persistent state, which includes everything under d:\home (your site bits are in d:\home\site\wwwroot).

There is also temp space under d:\local which is not shared, but this won't hurt your scenario.

See this for more detail on this topic.

like image 80
David Ebbo Avatar answered Jan 21 '26 07:01

David Ebbo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!