i want to upload a generated file as new blobobject to azure. My problem is, that if the azurerm_storage_container doesn't exists i have to create it as a resource. But if this container is already present in the storage account i get the error
'The specified container already exists'.
So i thought i could define my azurerm_storage_container as Data object. But then i get a error that
module.components.data.azurerm_storage_container.blobstorage: Provider doesn't support data source: azurerm_storage_container
To clarify: i want to create a new storage-container if there is not present in azure. after that i want to upload my generated local file into a new blobobject with is included into the storage-container.
I tried to set all objects as resource and data. i don't find the right combination of this objects to achieve my goal