Azure / aztfexport

A tool to bring existing Azure resources under Terraform's management
https://azure.github.io/aztfexport/
Mozilla Public License 2.0
1.58k stars 182 forks source link

Importing resoruce group fails #469

Open dwilson-daviesgroup opened 10 months ago

dwilson-daviesgroup commented 10 months ago

When importing a resource group, each resource is failing with the following error:

Failed to import /subscriptions/xxxxxx/resourceGroups/xxxxxx/providers/Microsoft.Network/networkSecurityGroups/xxxxxx/securityRules/xxxxxx-TCP-80-Internet as azurerm_network_security_rule.res-9:
Error: Inconsistent dependency lock file

The following dependency selections recorded in the lock file are
inconsistent with the current configuration:
  - provider registry.terraform.io/hashicorp/azurerm: required by this configuration but no version is selected

To make the initial dependency selections that will initialize the dependency
lock file, run:
  terraform init
magodo commented 10 months ago

@dwilson-daviesgroup Could you tell which version of the aztfexport you were using, and the CLI you were running?

dwilson-daviesgroup commented 10 months ago

aztfexport version v0.13.1(c690456) azure-cli 2.53.1

I suspect it's something to do with the workplace proxies. Seems to work fine on another machine

magodo commented 1 month ago

@dwilson-daviesgroup Just want to check if you still have issue with this, or I can close it now?