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

[SCAutoSensitivityLabelRule] Export includes all workloads instead of just the workload the rule applies to #4989

Closed
ykuijs opened this issue Aug 27, 2024 · 1 comment · Fixed by #4993 or #4998
Assignees
Labels

Comments

@ykuijs
Copy link
Member

ykuijs commented Aug 27, 2024

Description of the issue

When exporting the SCAutoSensitivityLabelRule resource, the export includes all workloads instead of just the workload the rule applies to. When you then try to re-import the created export, you are getting error messages.

The issue is caused by the fact that the code is iterating through the Workloads property, which contains all possible workloads. The LogicalWorkload property contains the workload the rule is actually assigned to.

Microsoft 365 DSC Version

DEV

Which workloads are affected

Security & Compliance Center

The DSC configuration

N/A

Verbose logs showing the problem

N/A

Environment Information + PowerShell Version

N/A
@ykuijs ykuijs added Bug Something isn't working Security & Compliance Center labels Aug 27, 2024
@ykuijs ykuijs self-assigned this Aug 27, 2024
@ykuijs
Copy link
Member Author

ykuijs commented Aug 27, 2024

Working on it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant