I am trying to to create a folder inside a blob storage container in Azure using terraform but it is failing as below. Any work around to achieve this ? Create a empty folder or a folder inside a blob storage container with a dummy file just to achieve the folder creation.
provider "azurerm" {
features {}
version = ">=1.31"
}
resource "azurerm_storage_blob" "test" {
name = "test/1.txt "
storage_account_name = azurerm_storage_account.azstg-rg.name
storage_container_name = azurerm_storage_container.stor-cont.name
type = "Block"
source = "./1.txt"
}
The script executes successfully however I am not able to view the folder and dont think it was successful.
Access control (IAM)
->Add
-> Fill the relevant data -> Click save – Amit Baranes