Angela
Angela

Reputation: 3389

How can I deploy static content separately from my Azure solution?

I saw the following comment on Stack Overflow but I'm unable to find a reference to it.

"Yes it is. I have seen a Azure webcast from Cloud9 where the application was 
broken up. The static content like images, html, css etc were deployed separately 
than the Azure solution. The azure web app just linked to these resources"

Has anyone done this and have any information on how to do it?

Upvotes: 1

Views: 279

Answers (1)

David Makogon
David Makogon

Reputation: 71025

As @Joe gennari mentioned: image links, css links, etc. just need to be changed, to reference objects in blob storage. For instance: <img src="http://mystorage.blob.core.windows.net/images/logo.jpg" />.

To actually get content into blob storage, you can:

  • Create a little uploader app, making very simple calls to via one of the language SDKs (Java, php, .net, python, etc.).
  • Upload blobs using PowerShell cmdlets - see command documentation here.
  • Use a tool such as Cerebrata's Cloud Storage Studio or Clumsy Leaf CloudXplorer, which lets you work with blobs in a similar way you'd work with your local file system.

You would no longer be bundling static content with your Windows Azure project. You'd upload blob updates separately (and without need for re-uploading an Azure project). This has the benefit of reducing deployment package size.

Upvotes: 1

Related Questions