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
Write-LogMessage-Headers $User-API $APINAME-message "Matched a CA policy with the existing Named Location: $($location.displayName)"-Sev 'Info'
156
+
Write-LogMessage-Tenant $TenantFilter-Headers $User-API $APINAME-message "Matched a CA policy with the existing Named Location: $($location.displayName)"-Sev 'Info'
157
157
158
158
} else {
159
159
if ($location.countriesAndRegions) { $location.countriesAndRegions=@($location.countriesAndRegions) }
@@ -169,7 +169,7 @@ function New-CIPPCAPolicy {
169
169
Start-Sleep-Seconds 2
170
170
$retryCount++
171
171
} while ((!$LocationRequest-or!$LocationRequest.id) -and ($retryCount-lt5))
172
-
Write-LogMessage-Headers $User-API $APINAME-message "Created new Named Location: $($location.displayName)"-Sev 'Info'
172
+
Write-LogMessage-Tenant $TenantFilter-Headers $User-API $APINAME-message "Created new Named Location: $($location.displayName)"-Sev 'Info'
173
173
[pscustomobject]@{
174
174
id=$GraphRequest.id
175
175
name=$GraphRequest.displayName
@@ -248,7 +248,7 @@ function New-CIPPCAPolicy {
248
248
}
249
249
} catch {
250
250
$ErrorMessage=Get-CippException-Exception $_
251
-
Write-LogMessage-API 'Standards'-tenant $tenant-message "Failed to replace displayNames for conditional access rule $($JSONobj.displayName). Error: $($ErrorMessage.NormalizedError)"-sev 'Error'-LogData $ErrorMessage
251
+
Write-LogMessage-API 'Standards'-tenant $TenantFilter-message "Failed to replace displayNames for conditional access rule $($JSONobj.displayName). Error: $($ErrorMessage.NormalizedError)"-sev 'Error'-LogData $ErrorMessage
252
252
throw"Failed to replace displayNames for conditional access rule $($JSONobj.displayName): $($ErrorMessage.NormalizedError)"
0 commit comments