Open sympmarc opened 1 week ago
I think this error is connected to #39
Agreed. I just wanted to record it separately.
I'm debugging, and if I stop at the connection line and just retry until it works (maybe 1 / 10 tries), then I can proceed.
I've introduced a retry in M365AdminCenter.psm1
, which helps, but doesn't solve the problem - yet.
try {
# $path = ($req.path) -replace "{{tenantId}}", $tenantId
$path = "https://admin.microsoft.com/$($req.path)"
$method = $($req.method) ? $req.method : "GET"
$result = Invoke-RestMethod -Uri $path -Headers $headers -Method "$($method)" -RetryIntervalSec 5
$propertiesValues | Add-Member -MemberType NoteProperty -Name $req.name -Value ($req.attr ? $result.$($req.attr) : $result)
}
When validating with baseline![image](https://github.com/tmaestrini/easyGovernance/assets/1295627/50858962-c925-433b-bdab-c14b2e2f9c7e)
M365.1-1.1
, consistent errors for parameter checks. This is after successful connections.