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

Export-AzRuleData doesn't export the Microsoft.Subscription resource #3231

Open
BernieWhite opened this issue Jan 22, 2025 · 0 comments
Open
Labels
feature: in-flight-export Issues that related to exporting resource data for in-flight analysis. .NET Pull requests that update .net code

Comments

@BernieWhite
Copy link
Collaborator

BernieWhite commented Jan 22, 2025

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.

@BernieWhite BernieWhite added feature: in-flight-export Issues that related to exporting resource data for in-flight analysis. .NET Pull requests that update .net code labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: in-flight-export Issues that related to exporting resource data for in-flight analysis. .NET Pull requests that update .net code
Projects
None yet
Development

No branches or pull requests

1 participant