Skip to content

Deployment error upgrading to release 0.24.0 - A resource with the ID pip-fw-management already exists #4661

@jonnyry

Description

@jonnyry

Currently running a TRE on v0.23.0. Attempted an upgrade to v0.25.0 which resulted in the deployment error below during the Deploy TRE Core job.

I suspect it is related to this PR #4342 since it contains a sizable firewall change.

I am running an Azure Firewall with a Basic SKU.


module.resource_processor_vmss_porter[0].terraform_data.vm_linux_reimage: Still creating... [50s elapsed]
module.resource_processor_vmss_porter[0].terraform_data.vm_linux_reimage: Still creating... [1m0s elapsed]
module.resource_processor_vmss_porter[0].terraform_data.vm_linux_reimage: Still creating... [1m10s elapsed]
module.resource_processor_vmss_porter[0].terraform_data.vm_linux_reimage: Still creating... [1m20s elapsed]
module.resource_processor_vmss_porter[0].terraform_data.vm_linux_reimage: Still creating... [1m30s elapsed]
module.resource_processor_vmss_porter[0].terraform_data.vm_linux_reimage: Creation complete after 1m32s [id=XXX]
╷
│ Error: A resource with the ID "/subscriptions/XXX/resourceGroups/rg-***/providers/Microsoft.Network/publicIPAddresses/pip-fw-management-***" already exists - to be managed via Terraform this resource needs to be imported into the State. Please see the resource documentation for "azurerm_public_ip" for more information.
│ 
│   with module.firewall.azurerm_public_ip.fwmanagement[0],
│   on firewall/firewall.tf line 18, in resource "azurerm_public_ip" "fwmanagement":
│   18: resource "azurerm_public_ip" "fwmanagement" ***
│ 
╵
Script done.
Terraform Error

Setting key vault kv-*** back to private access...
 Key vault set back to private access


Disabling public access on storage account

Storage account name: ***

Resource group name: ***
 Public access has been disabled successfully

make: *** [Makefile:136: deploy-core] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions