Srikkanth Sreeram
Srikkanth Sreeram

Reputation: 11

Azure app service

I have two app services. In both the app services I have a common folder that needs to be accessed. For example, lets assume that in the first app service I am adding a business and it stores in the location D:\home\site\wwwroot\business. From the second app service I would need to access the files in D:\home\site\wwwroot\business of the first app service. Appreciate the help in advance.

Upvotes: 0

Views: 166

Answers (2)

Paul Roy
Paul Roy

Reputation: 11

As david said each app has its own storage and regarding your needs you should probably consider a storage option, blob or file.

However you can also set your two web apps on a same virtual network and share a folder through that network.

For more informations you should check Microsoft documentation on Integrate your app with an Azure Virtual Network

Upvotes: 0

David Makogon
David Makogon

Reputation: 71031

Each web app gets its own storage space, shared between instances of the web app.

webapp1.azurewebsites.net has no access to the d:\home\site\... storage used by webapp2.azurewebsites.net.

If you want to share storage between web apps, and assuming you're not talking about a database, you'd need to either:

  • use Azure Storage blobs
  • use an Azure File store (via api; web apps don't let you mount file shares)

You could always use a vm (with attached disks, which are durable) to share storage as well, but that has its own issues (e.g. if the VM with attached storage goes down for any reason, so does your shared storage).

EDIT You can also consider using something like the Redis service to cache content (if it fits within a key/value store paradigm), which would then be available to all of your web apps, as needed.

Upvotes: 2

Related Questions