with azurerm_storage_account resource , i see storage account get created in respective resource group but always endup with below mentioned error. Hence, azurerm_storage_container and azurerm_storage_blob are not progressing. But when i tried to add the container and blob manually under the created storage account resource it works. not sure why only with terraform deployment below error is coming. pls some one help me resolve this.
resource "azurerm_storage_account" "example" {
name = "asa
location = var.resource_group_location
resource_group_name = var.resource_group_name
account_tier = "Standard"
account_replication_type = "LRS"
account_kind = "Storage"
timeouts {
create = "2m"
update = "2m"
delete = "2m"
}
}
resource "azurerm_storage_container" "example" {
name = "asc"
storage_account_name = azurerm_storage_account.example.name
container_access_type = "private"
}
resource "azurerm_storage_blob" "example" {
name = "test.msi"
storage_account_name = azurerm_storage_account.example.name
storage_container_name = azurerm_storage_container.example.name
type = "Block"
source = "../../test/test.msi"
}
azurerm_storage_account.example: Still creating... [20s elapsed]
azurerm_storage_account.example: Still creating... [30s elapsed]
azurerm_storage_account.example: Still creating... [40s elapsed]
azurerm_storage_account.example: Still creating... [50s elapsed]
azurerm_storage_account.example: Still creating... [1m0s elapsed]
azurerm_storage_account.example: Still creating... [1m10s elapsed]
azurerm_storage_account.example: Still creating... [1m20s elapsed]
azurerm_storage_account.example: Still creating... [1m30s elapsed]
azurerm_storage_account.example: Still creating... [1m40s elapsed]
azurerm_storage_account.example: Still creating... [1m50s elapsed]
azurerm_storage_account.example: Still creating... [2m0s elapsed]
╷
│ Error: waiting for the Data Plane for Storage Account (Subscription: "xxx-xxxx-xxx-xxx"
│ Resource Group Name: "rsg-name"
│ Storage Account Name: "asa") to become available: waiting for the Blob Service to become available: context deadline exceeded
│
│ with azurerm_storage_account.example,
│ on main.tf line 128, in resource "azurerm_storage_account" "example":
│ 128: resource "azurerm_storage_account" "example" {
│
╵```
Error: waiting for the Data Plane for Storage Account to become available: waiting for the Blob Service to become available: context deadline exceeded