[BUG] Export-AzRuleData overwrites export file when exporting a large subscription #2957
Labels
bug
Something isn't working
feature: in-flight-export
Issues that related to exporting resource data for in-flight analysis.
Milestone
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
The text was updated successfully, but these errors were encountered: