Hosting static site for cheap on Azure with Storage and Serverless
Links
- https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website-how-to?tabs=azure-portal
- https://docs.microsoft.com/en-us/azure/storage/blobs/static-website-content-delivery-network
Example of CLI commands. NOte this one creates a container whereas enabling static website creates $web for you
- https://blog.maximerouiller.com/post/hosting-static-site-for-cheap-on-azure-with-storage-and-serverless/
az group create --name staticblog-test -l eastus
az storage account create --name hugoblog2 -g staticblog-test --sku Standard_LRS
$key = az storage account keys list -n hugoblog2 -g staticblog-test --query [0].value -o tsv
az storage container create --name content --public-access container --account-name hugoblog2 --account-key $key
cd <output directory of your static site>
az storage blob upload-batch -s . -d content --account-name hugoblog2 --account-key $key --max-connections 20
$ az storage account keys list -n sites1 -g sites --query [0].value -o tsv
9fqlsZOSgbcq9CNG07cojHacJwlggi+Ua2NtptjXuhmphuWSgdYq4PpD6lPwesnWfveyQ8+ANfB2QehCjdokAw==
$ az group list --query [].name -o tsv
cloud-shell-storage-southcentralus
myResourceGroup
NetworkWatcherRG
sites
$ az storage account list --query [].name -o tsv
diag65989ce1b84e6a93
cs7b6bff993fd52x4094x824
sites1
sitesdiag
$ az storage container list --account-name sites1 --account-key 9fqlsZOSgbcq9CNG07cojHacJwlggi+Ua2NtptjXuhmphuWSgdYq4PpD6lPwesnWfveyQ8+ANfB2QehCjdokAw== --query [].name -o tsv
$web
Wordpress Reference Details
title: 'static site for cheap on Azure' date: '2020-05-07T15:52:08-05:00'
-->