-
Notifications
You must be signed in to change notification settings - Fork 193
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
aztfy skips storage accounts #156
Comments
These are embedded service that are created together with the storage account. There is no correspondance in TF. |
The same problem exists here. You can add the resource manually by specifying the name like azurerm_storage_account.StoAccName.
@magodo As you can see, there is definitely an equivalent in terraform. This is the reason why I am totally confused why these objects are not recognized correctly. |
So you are trying to import the container rather than the storage account (as the ids in your issue description is truncated, I thought you were trying to import things like
Could you please provide more details for this? |
Sorry yes, the output above was truncated. But there is nothing special going on here. I am running aztfy on a resource group with only one resource in it which is a storage account. Surely a storage account can be imported with aztfy right? I've seen it import much more complicated things like Application Gateway WAF's etc, but why skip a storage account? Is there some sort of trick I need to run to import storage accounts? Attached is the output of a simple aztfy command "aztfy <resource_group_name>" in an empty directory. I'm using aztfy version: v0.5.0(f957fc1) |
From the README:
The reason why it is showning |
@magodo I agree but at least it should generate the storage account definition in TF which is not happening in my case. It only generates the RG. I'm running v0.5.0 |
@sosoriov You can try the latest main branch, which should be smart enough now to identify a storage account. |
that did the trick. Thanks @magodo ! |
This issue is fixed in the v0.6.0 (#175) |
When running aztfy on a resource group that only has a storage account, the aztfy command skips over the storage account. No reason given for why it's being skipped, it just lists all the resources and lists (Skip) with each of them.
` Azure Terrafy
│ /subscriptions/xxx-yyy-zzz/resourceGroups/Test_RG/providers/Microsoft.Storage/storageAccounts/myteststoracc538asd
│ (Skip)
`
The text was updated successfully, but these errors were encountered: