Khalil
Khalil

Reputation: 1

windows azure cloud service

I used windows azure cloud service.

I added a new web site to the IIS on the production server successfully but my problem when I restart the virtual machine

the site are removed

I change the location of the web site from ( F or E driver to C ) successfully but my problem when I restart the virtual machine the web site return to the location on ( F or E driver )\

Any help.

Upvotes: 0

Views: 225

Answers (2)

Simon W
Simon W

Reputation: 5496

The behaviour you describe is by design - Web Roles will deploy your site to any number of drive letters (I've seen it change between hosts). Your site is most likely disappearing between reboots because you are moving it to the large "ephemeral" or temporary drive that each Web Role host has. This is typically larger than the other drives but isn't persistent between reboots.

Your best bet would be to leave the site to be deployed 'as is' unless you have a good reason to need to change - if it's because you need more space for uploaded content, etc, then you might need to consider rewriting those components of your application to write to Blob Storage. You may even want to look at leveraging the newly announced SMB shares over blob storage for this purpose (http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx)

Upvotes: 1

Sean Barlow
Sean Barlow

Reputation: 588

You can handle the drive letter in a start up script.

Here is a blog with an example startup script.

MSDN Blog

Upvotes: 0

Related Questions