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
$null=New-GraphPOSTRequest-uri $uri-tenantid $TenantFilter-type POST -body $AssignJSON
109
114
if ($ExcludeGroup) {
110
115
Write-LogMessage-headers $Headers-API $APIName-message "Assigned group '$GroupName' and excluded group '$ExcludeGroup' on Policy $PolicyId"-Sev 'Info'-tenant $TenantFilter
116
+
return"Successfully assigned group '$GroupName' and excluded group '$ExcludeGroup' on Policy $PolicyId"
111
117
} else {
112
118
Write-LogMessage-headers $Headers-API $APIName-message "Assigned group '$GroupName' on Policy $PolicyId"-Sev 'Info'-tenant $TenantFilter
119
+
return"Successfully assigned group '$GroupName' on Policy $PolicyId"
Write-LogMessage-headers $Headers-API $APIName-message "Failed to assign $GroupName to Policy $PolicyId, using Platform $PlatformType and $Type. The error is:$ErrorMessage"-Sev 'Error'-tenant $TenantFilter-LogData $ErrorMessage
126
+
return"Failed to assign $GroupName to Policy $PolicyId. Error: $ErrorMessage"
0 commit comments