Export-AzRuleData doesn't export the Microsoft.Subscription resource #3227
Replies: 2 comments
-
Seems like a bug @danny-cloudsinsight I'll raise an issue. Thanks for reporting it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Fixed in release v1.41.1. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions