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-Tenant $TenantFilter-Headers $User-API $APINAME-message "Updated existing Named Location: $($location.displayName)"-Sev 'Info'
184
+
} catch {
185
+
Write-Warning"Failed to update location $($location.displayName): $_"
186
+
Write-LogMessage-Tenant $TenantFilter-Headers $User-API $APINAME-message "Failed to update existing Named Location: $($location.displayName). Error: $_"-Sev 'Error'
187
+
}
188
+
} else {
189
+
Write-LogMessage-Tenant $TenantFilter-Headers $User-API $APINAME-message "Matched a CA policy with the existing Named Location: $($location.displayName)"-Sev 'Info'
Write-LogMessage-Tenant $TenantFilter-Headers $User-API $APINAME-message "Matched a CA policy with the existing Named Location: $($location.displayName)"-Sev 'Info'
182
-
183
196
} else {
184
197
if ($location.countriesAndRegions) { $location.countriesAndRegions=@($location.countriesAndRegions) }
0 commit comments