aztfexport icon indicating copy to clipboard operation
aztfexport copied to clipboard

Importing Resource Groups Still Doesn't work

Open tsjake opened this issue 1 year ago • 4 comments

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

tsjake avatar Apr 25 '24 14:04 tsjake

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

stemaMSFT avatar Apr 25 '24 19:04 stemaMSFT

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.

tsjake avatar Apr 25 '24 19:04 tsjake

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.

stemaMSFT avatar Apr 25 '24 19:04 stemaMSFT

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

magodo avatar Apr 26 '24 01:04 magodo

Closing for no response from author.

magodo avatar Aug 09 '24 07:08 magodo