anoj-cha
anoj-cha

Reputation: 281

Use ARM template to create directories in Azure Storage Containers?

I can't seem to find documentation saying this can be done? But neither saying that this can't be done. So wondering if anyone else has had this idea/query in past.

I have ARM template to generate our new data lake and it's creating storage account and container. It'd have been great to create folder structure also using the template. Or maybe the directories don't count as a 'resource'?

Upvotes: 1

Views: 1975

Answers (1)

4c74356b41
4c74356b41

Reputation: 72191

ARM api does not support that: https://learn.microsoft.com/en-us/rest/api/storagerp/blobcontainers/create

you can only work on containers\file shares\tables and queues. You cannot create object inside those. So its not possible with ARM Templates. They can only operate against ARM apis.

you can use deploymentScript resource as a workaround

Upvotes: 2

Related Questions