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

Somehow #287

Closed
John-Donalson opened this issue Oct 31, 2022 · 2 comments
Closed

Somehow #287

John-Donalson opened this issue Oct 31, 2022 · 2 comments
Labels
question Further information is requested

Comments

@John-Donalson
Copy link

Somehow last week i was able to use aztfy rg fine. now this week, every resource i try gives "Error: More than one resource groups specified" the only thing that changed was i now have 4 multiple subscriptions, but did set-azcontext.... so confused

@m1rl0k
Copy link

m1rl0k commented Oct 31, 2022

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x13a0809]

goroutine 144 [running]:
github.com/magodo/azlist/azlist.listDirectChildResource({0x298b110, 0xc00003e0c8}, 0xc0026a0760, 0xc0023ae8d0?, {{0x298f818?, 0xc0003b2b40?}, 0xc00265e2a0?})
github.com/magodo/azlist@v0.0.0-20220923015326-17b16cc9b805/azlist/azlist.go:347 +0x129
github.com/magodo/azlist/azlist.ListChildResource.func2()
github.com/magodo/azlist@v0.0.0-20220923015326-17b16cc9b805/azlist/azlist.go:285 +0x47
github.com/magodo/workerpool.(*workPool).Run.func1(0x0?)
github.com/magodo/workerpool@v0.0.0-20211124060943-1c48f3e5a514/workerpool.go:75 +0x99
created by github.com/magodo/workerpool.(*workPool).Run
github.com/magodo/workerpool@v0.0.0-20211124060943-1c48f3e5a514/workerpool.go:66 +0x5d

one of the errors; when trying;

also get this when i try non-interactive ;

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.

sorry for the questions from multiple accounts

@magodo
Copy link
Collaborator

magodo commented Nov 1, 2022

@John-Donalson That is because the command you used to invoke aztfy is incorrect, please chekcout aztfy rg -h.

@m1rl0k Please open another issue for a new problem. For your specific case, it duplicates to #257.

@magodo magodo added the question Further information is requested label Nov 1, 2022
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

3 participants