0
votes

I currently host a static web app on Azure Blob Storage which uses an SSL cert that I have on Azure Key Vault -- see picture below.

enter image description here

My question is hosting second and third static web apps -- which will also have their own SSL certs coming from Azure Key Vault. Do I need separate storage accounts for each static website I want to host on Azure Blob Storage?

All the files come from $web container and I'm not sure if there's a way to pull web site content from another container on Azure Blob Storage.

1
what do you mean by this? "which uses SSL cert that I have on Azure Key Vault"silent
It means I access the website through https. If a static website is hosted on Azure Blob Storage and needs to use an SSL cert, the certificate must be stored in Azure Key Vault. So, I'm saying that I want to host multiple static websites which will all have their own SSL certs that are stored in my Azure Key Vault account.Sam

1 Answers

1
votes

Do I need separate storage accounts for each static website I want to host on Azure Blob Storage

Yes, you would need to add new storage accounts and create custom domains and SSL certs for each account.

That's why I would propose a different solution:

Use one Azure Front Door, add one (or multiple, if you need to) custom domains to it. Either reference your custom SSL cert from KeyVault or - even better - use the FrontDoor-managed certificates. Then create one storage account and create a new container for each web site you want to host. You dont even need to enable static website for this to work if you just make the containers public-read.

Then add the storage account as a backend in Front Door and different routing rules to the different containers. The routing rules could either be based on the path or, if you add different domain names for each site to Front Door, based on the domain.