Reputation: 897
I am creating a plugin for an existing web application, which expects me to serve a bunch of static HTML/JS/CSS/etc over a secure https connection.
I have just signed up an Azure account for this. Can someone tell me what are the next steps I should take to get things setup correctly?
Thanks
Upvotes: 0
Views: 2300
Reputation: 26314
Just drop those files in Azure Blob Storage (think object-store or Amazon S3-like). It's HTTPS-enabled by default.
$ curl -v https://{storage-account}.blob.core.windows.net
Server certificate:
* subject: CN=*.blob.core.windows.net
* start date: 2016-07-02 05:15:10 GMT
* expire date: 2018-05-07 17:03:30 GMT
* issuer: C=US; ST=Washington; L=Redmond; O=Microsoft Corporation;
OU=Microsoft IT; CN=Microsoft IT SSL SHA2
You can use Microsoft Azure Storage Explorer to upload your static content with zero fussing around. Alternatively, use the SDK for a programatic approach.
Azure CDN is one additional service to consider on top of Blob storage, especially if your clients are geographically spread out. They'll get better performance (throughput) and lower latency (edge caching).
LATER UPDATE:
A static website feature is now available in Blob Storage -
This gives you default document handling (AKA you browse to / and it serves index.html
).
Upload your web assets to the $web
container that was created as a part of static website enablement. You can do this directly in Azure Portal or via Azure Storage clients.
Upvotes: 6