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

Write failedPolicyRemediationTasksJsonString and createWorkItem on Failed to Create Remediation #821

Merged
merged 3 commits into from
Nov 18, 2024

Conversation

LeonB87
Copy link
Contributor

@LeonB87 LeonB87 commented Nov 11, 2024

I ran into a situation where the number of $failed remediation tasks was 0. But the $failedToCreate was > 0. WIth the current script, the property createWorkItem will not be set to True and the failedPolicyRemediationTasksJsonString property remains empty.

Since the tasks that are "failed to be created" are already being added to the $failedPolicyRemediationTasks, this fix allows for that information to be processed properly.

I modified as little as possible in the existing script to gain functionality.

@anwather anwather merged commit 11aa107 into Azure:main Nov 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants