Could you verify which resource you are trying to create and share more details about your terraform configuration?
You can try the following steps to troubleshoot the issue:
- Confirm that you have the latest Azure provider version and that it is compatible with Terraform. You can check the Terraform documentation to ensure that the Azure provider version is compatible with the version of Terraform you are using. I believe the latest one should be 3.53.0. For example:
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=3.53.0"
}
}
}
provider "azurerm" {
features {}
}
- Validate that your Terraform configuration is correct. You can use the "terraform plan" command to check if the plan is correct and if there are any errors or warnings. https://learn.microsoft.com/en-us/azure/developer/terraform/best-practices-integration-testing#3-validate-terraform-configuration
Check if the Azure subscription is correct. You can use the "az account show" command to check if the correct Azure subscription is selected.
- Check if the resource group and location are correct. You can confirm if the resource group and location specified in the Terraform configuration are correct.
Let me know if this helps and if you have further questions. If you share more details about which resources you are trying to create and your terraform configuration, I will be able to better assist.
Additional guide for creating Azure applicatiosn: https://www.terraform.io/docs/providers/azuread/r/application.html
If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar information.