Terraform scenarios to create Azure App Service with scenarios 'Resource Group not found' despite correct configuration
I've searched everywhere and can't find a clear answer. I'm stuck on something that should probably be simple... I'm trying to provision an Azure App Service using Terraform, but I'm working with an behavior stating 'Resource Group not found' during the apply phase, even though I've double-checked that the resource group exists and my configuration looks correct. I'm using Terraform version 1.2.5 and the Azure provider version 2.74.0. Here's the relevant part of my code: ```hcl resource "azurerm_resource_group" "example" { name = "my-resource-group" location = "West US" } resource "azurerm_app_service_plan" "example" { name = "my-app-service-plan" location = azurerm_resource_group.example.location resource_group_name = azurerm_resource_group.example.name sku { tier = "Standard" size = "S1" } } resource "azurerm_app_service" "example" { name = "my-app-service" location = azurerm_resource_group.example.location resource_group_name = azurerm_resource_group.example.name app_service_plan_id = azurerm_app_service_plan.example.id } ``` I've confirmed that "my-resource-group" exists in Azure through the portal and that my credentials are correctly configured. When I run `terraform plan`, everything looks fine, but during `terraform apply`, I get the following behavior: ``` behavior: creating App Service "my-app-service": (Resource Group not found) ``` I've also tried to explicitly specify the resource group in the `azurerm_app_service` resource but it still fails. Any insights into what might be going wrong? Am I missing a dependency or is there a specific timing scenario with resource creation? I would really appreciate any help! Thanks in advance! Has anyone else encountered this? I appreciate any insights!