Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot export resource group #532

Open
MLingenau opened this issue Jun 5, 2024 · 1 comment
Open

Cannot export resource group #532

MLingenau opened this issue Jun 5, 2024 · 1 comment
Labels
question Further information is requested

Comments

@MLingenau
Copy link

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
Copy link
Collaborator

magodo commented Jun 6, 2024

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

@magodo magodo added the question Further information is requested label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants