Export-AzRuleData doesn't export the Microsoft.Subscription resource #3231
Labels
feature: in-flight-export
Issues that related to exporting resource data for in-flight analysis.
.NET
Pull requests that update .net code
Discussed in #3227
Originally posted by danny-cloudsinsight January 21, 2025
Hello,
I am exporting all resources from my subscription using the following PowerShell command:
Export-AzRuleData -OutputPath './exportAzureData/ -All
It exports all resources correctly, except the subscription resource itself ('Microsoft.Subscription').
Because of this the rules (like for example the rule Azure.RBAC.UseGroups) for the Microsoft.Subscription type aren't executed when I run the command:
Invoke-PSRule -InputPath './exportAzureData/<subscriptionId>.json -Module 'PSRule.Rules.Azure'
Is there a way to also include this subscription resource in the export?
Confirmed the
Microsoft.Subscription
resource is not exported in the current version v1.40.0.The text was updated successfully, but these errors were encountered: