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

Importing Resource Groups Still Doesn't work #520

Open
tsjake opened this issue Apr 25, 2024 · 4 comments
Open

Importing Resource Groups Still Doesn't work #520

tsjake opened this issue Apr 25, 2024 · 4 comments
Labels
question Further information is requested

Comments

@tsjake
Copy link

tsjake commented Apr 25, 2024

when I run aztfexport rg it tells me all the resources are skipped, additionally it only shows one resource despite there being 14 in the group. I tried the --use-azure-cli-cred flag and it tells me there's multiple resource groups defined.

This is with 0.14.1

@stemaMSFT
Copy link
Member

Hey @tsjake what's the full command you're running?

@tsjake
Copy link
Author

tsjake commented Apr 25, 2024

Hey @tsjake what's the full command you're running?

I ran:
aztfexport rg and also --use-azure-cli-cred

I should add I can import single resources just fine.

@stemaMSFT
Copy link
Member

stemaMSFT commented Apr 25, 2024

if your command is aztfexport rg --use-azure-cli-cred myResourceGroup then this does just seem like a bug.
Does running aztfexport query --use-azure-cli-cred --recursive "type =~ 'Microsoft.Resources/resourceGroups' and name =~ 'myResourceGroup'" solve the problem? Replace myResourceGroup with your RG of course.

@magodo
Copy link
Collaborator

magodo commented Apr 26, 2024

@tsjake Can you please share the generated mapping file aztfexportResourceMapping.json?

@magodo magodo added the question Further information is requested label Apr 26, 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

3 participants