You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(standards): support plain-string displayName in QuarantineTemplate
Drift remediation and hand-built templates can pass displayName as a plain string rather than an autoComplete object with a .value property. This caused QuarantineTemplate comparisons to fail silently.
Also adds drift deviation resolution for QuarantineTemplate (hex-encoded policy name) and ReusableSettingsTemplate, and improves the error message when a setting cannot be resolved from drift template settings.
Synced from CyberDrain/CIPP@8cee804
Write-LogMessage-tenant $TenantFilter-Headers $Request.Headers-API $APINAME-message "Could not find QuarantineTemplate '$PolicyName' in drift standard settings for remediation"-Sev 'Warning'
Write-LogMessage-tenant $TenantFilter-Headers $Request.Headers-API $APINAME-message "Could not find ReusableSettingsTemplate $TemplateId in drift standard settings for remediation"-Sev 'Warning'
# If the addedComponent values are stored nested under standards.<setting> instead of
@@ -191,7 +225,7 @@ function Invoke-ExecUpdateDriftDeviation {
191
225
[PSCustomObject]@{
192
226
standardName=$Deviation.standardName
193
227
success=$false
194
-
error="The deviation status was updated, but no remediation task was scheduled: the template could not be resolved from the drift template settings. Verify the template still exists in the template library, or re-save the drift template."
228
+
error="The deviation status was updated, but no remediation task was scheduled: '$Setting' could not be resolved from the drift template settings. Verify the template still exists in the template library and is included in the drift template, or re-save the drift template."
0 commit comments