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

aztfty unable to export resource group more that 200 templates #76

Closed
manjeetsinghcodz opened this issue Apr 26, 2022 · 7 comments · Fixed by #231
Closed

aztfty unable to export resource group more that 200 templates #76

manjeetsinghcodz opened this issue Apr 26, 2022 · 7 comments · Fixed by #231
Labels
enhancement New feature or request upstream-microsoft

Comments

@manjeetsinghcodz
Copy link

Hello,

i have following error when doing an import :

aztfy XXXX
exporting arm template of resource group XXXXX: resources.GroupsClient#ExportTemplate: Failure sending request: StatusCode=0 -- Original
Error: autorest/azure: Service returned an error. Status= Code="ExportTemplateResourcesLimitExceeded" Message="Export template is not supported
for resource groups that have more than '200' resources."
<<<

Please help. Thank you

@magodo
Copy link
Collaborator

magodo commented Apr 26, 2022

@manjeetsinghcodz Thank you for submitting this!

This is because currently aztfy is using the ARM template to do the resource listing and dependency resolvation. As seen from the error message, ARM template export has limitation of up to 200 resources. We are planning to strip the dependency on ARM template, but need efforts to make it happen.

@magodo magodo added the enhancement New feature or request label Apr 26, 2022
@manjeetsinghcodz
Copy link
Author

@magodo thanks for this info. but is there a way to import only one resource from a resource-group with aztfy ?

@magodo
Copy link
Collaborator

magodo commented Apr 27, 2022

@manjeetsinghcodz You can do that via https://github.com/magodo/tfadd, which is used by aztfy under the hood.

@rtorato
Copy link

rtorato commented Jul 7, 2022

@manjeetsinghcodz You can do that via https://github.com/magodo/tfadd, which is used by aztfy under the hood.

Hi @magodo , but for this...i do need to create the tf file first and it'll like an import? Or not? I didn't understand well how to use the tfadd to import, like, a VM or an app gateway

@magodo
Copy link
Collaborator

magodo commented Jul 7, 2022

@rtorato You can check out the readme: https://github.com/magodo/tfadd#usage. Once #166 is merged, there would be first class subcommand for the single resource scenario.

@rtorato
Copy link

rtorato commented Jul 7, 2022

@rtorato You can check out the readme: https://github.com/magodo/tfadd#usage. Once #166 is merged, there would be first class subcommand for the single resource scenario.

Awesome. I'll wait for the merge and test, posting the feedbacks after completing

@magodo
Copy link
Collaborator

magodo commented Jul 22, 2022

@rtorato v0.6.0 is now released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request upstream-microsoft
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants