Azure-docs: Deploying a storage account with the Static Site setting enabled.

Created on 1 May 2019  Â·  7Comments  Â·  Source: MicrosoftDocs/azure-docs

I'm unable to locate any information on how I can deploy a storage account configured for Static website hosting via ARM and I don't see any properties for it in the 2019-04-01 APIVersion.
Is it possible to enable this feature via ARM or.. even some other method rather than enabling it in the portal? I would be happy to use another method of automating the process of enabling this option outside of ARM if there is one. I just really would like to get this one piece of our deployment process automated.

I can make a general V2 storage account in ARM all day but what I would like to do is enable the option for static content in the ARM template as well. Then my pipeline could deploy all of our resources (including the storage account) and proceed to upload content via azcopy or some other method to said storage account. Whereas currently, our deployment pipeline deploys the V2 storage account via arm, we then log into Azure and enable the option on the new storage account..... and then upload the content.

Thanks!


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

blobsubsvc cxp product-question storagsvc triaged

All 7 comments

@JoMoore88 Thank you for the valuable feedback,we are investigating the issue.

@normesta - FYI

I noticed in the docs there is a way to enable this option using a preview module in azure CLI which would work I suppose. But if there is a way to do it via ARM that would be preferred.

@JoMoore88 -

I'm sorry that the docs are confusing on this point. The static websites feature is now generally available, so that command is now in the latest version of the
Azure CLI. The client libraries also support configuring static websites.

You'll notice that it's set via the Blob service properties, as static websites are available only for Blob storage. This means that the setting is not currently available via Azure Resource Manager. We'll continue to investigate whether there is an easier way to automate this.

I also reached out internally to the team to check if ARM supports Static Website deployments. @seguler may confirm if it is supported or not.

Thank you both, no need to apologize, this is my fault for poorly skimming and reading the documentation. I knew it was GA and went to the documentation with the assumption that it would be done via ARM. I should have read through the documentation more carefully.

I can use the CLI, thank you both for your time on this.

@JoMoore88 Thanks for the update, We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrdfuse picture mrdfuse  Â·  3Comments

jebeld17 picture jebeld17  Â·  3Comments

varma31 picture varma31  Â·  3Comments

jharbieh picture jharbieh  Â·  3Comments

Agazoth picture Agazoth  Â·  3Comments