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

[BUG] Export-AzRuleData overwrites export file when exporting a large subscription #2957

Closed
flamableassassin opened this issue Jun 28, 2024 · 0 comments · Fixed by #2959
Closed
Assignees
Labels
bug Something isn't working feature: in-flight-export Issues that related to exporting resource data for in-flight analysis.
Milestone

Comments

@flamableassassin
Copy link

Existing rule

No response

Description of the issue

When using Export-AzRuleData with the scope of a subscription with a lot of resources (over 3k in my case), it will try to create 2 files. The files have the same name just different case which means the second file overwrites the first file in windows resulting in 1 file rather than 2.

Please see #34 (comment) as well

Error messages

Mode LastWriteTime Length Name


-a--- 28/06/2024 10:27 32983629  x11111i8-fx1x-1111-a1x1-1a11x11fTa11.json
-a--- 28/06/2024 10:27 20923  X11111i8-FX1X-1111-A1X1-1A11X11FTA11.json

Reproduction

Run Export-AzRuleData on the scope of a subscription with a lot of resources (i had over 3k)

Version of PSRule

2.9.0

Version of PSRule for Azure

No response

Additional context

No response

@flamableassassin flamableassassin added bug Something isn't working Needs: Triage 🔍 labels Jun 28, 2024
@BernieWhite BernieWhite added feature: in-flight-export Issues that related to exporting resource data for in-flight analysis. and removed Needs: Triage 🔍 labels Jun 29, 2024
@BernieWhite BernieWhite self-assigned this Jun 29, 2024
@BernieWhite BernieWhite added this to the v1.38.0 milestone Jun 29, 2024
BernieWhite added a commit to BernieWhite/PSRule.Rules.Azure that referenced this issue Jun 29, 2024
This was referenced Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature: in-flight-export Issues that related to exporting resource data for in-flight analysis.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants