Azure / aztfexport

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

Cannot export resource group #532

Closed MLingenau closed 3 months ago

MLingenau commented 5 months ago

When running a plain export command of a res group (aztfexport.exe rg "rg-name"), the following error occurs when selecting and import:

Error: Cannot import non-existent remote object

While attempting to import an existing object to "azurerm_resource_group.res-0", the provider detected that no object exists with the given id. Only pre-existing objects can be imported; check that the id is correct and that it is associated with the provider's configured region or endpoint, or use "terraform apply" to create a new remote object for this resource.

magodo commented 5 months ago

Probably because the wrong subscription is selected, please use -s to set the subscription id explicitly.

magodo commented 3 months ago

Closing this issue for no feedback.