Azure / aztfexport

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

rg argument does not display the resource group or any resources within the group #513

Closed MohnJadden closed 1 month ago

MohnJadden commented 6 months ago

When I run aztfexport with the --resource-group argument, aztfexport runs for a moment and then shows no resource groups or resources found. I confirmed that my user account and my machine identity both have the Reader role on the resource group and all resources within the group. I've retried az login several times and the issue persists.

This is with v0.14.0.

stemaMSFT commented 6 months ago

@MohnJadden can you confirm the full command you're running here? Feel free to redact any sensitive info.

MohnJadden commented 6 months ago

@stemaMSFT I'm running ./aztfexport rg --output-dir "newdir" resourcegroupname

Output looks like:

`Microsoft Azure Export for Terraform resourcegroupname No items

No items found.`

stemaMSFT commented 6 months ago

Does the output change when using the --use-azure-cli-cred command?

tsjake commented 5 months ago

I am having the same issue. In my case it sees the resource group, but no resources under it.

magodo commented 1 month ago

:wave:

Since we've not heard back here I'm going to close this issue for the moment. Feel free to reopen if still have questions.