Closed HeZhang33 closed 2 years ago
Thanks for the feedback. I would recommend to check for the existence of the resource group and change name on config-infra-prod.yml or config-infra-dev.yml (changing postfix
value). Let us know if that solves the issue.
Thanks a lot @murggu ! The problem solved.
When I run the ADO Pipeline (Section: Outer Loop: Deploying Infrastructure via Azure DevOps, Step 8: Run the pipeline), I kept getting resource group already exists errors, even though I have changed names to be unique several times (also each time deleted accordingly those resource groups in Azure portal). Please help. Thanks a lot!
I put the error below:
Error: A resource with the ID "/subscriptions/7b60df94-2d4a-463d-9468-5ed1cce920b2/resourceGroups/rg-mlopsv2hez-0919prod" already exists - to be managed via Terraform this resource needs to be imported into the State. Please see the resource documentation for "azurerm_resource_group" for more information.
on modules/resource-group/main.tf line 1, in resource "azurerm_resource_group" "adl_rg": 1: resource "azurerm_resource_group" "adl_rg" {
Releasing state lock. This may take a few moments...
[error]Error: The process '/opt/hostedtoolcache/terraform/0.14.7/x64/terraform' failed with exit code 1
Finishing: Terraform apply