Skip to content

Commit

Permalink
IPPS session type updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jformacek committed Oct 8, 2024
1 parent 90f6064 commit bf0e9d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
7 changes: 6 additions & 1 deletion Commands/Public/Invoke-ExoCommand.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ This command creates connection for IPPS REST API, retrieves list of sensitivity
Start-Sleep -Seconds $retries
}
}
catch
{
$shouldContinue = $false
throw
}
finally
{
if($ShowRateLimits)
Expand All @@ -229,6 +234,6 @@ This command creates connection for IPPS REST API, retrieves list of sensitivity
}
}
}
}while($null -ne $pageUri -and $resultsRetrieved -lt $ResultSize -and $shouldContinue)
}while($null -ne $pageUri -and ($resultsRetrieved -lt $ResultSize) -and $shouldContinue)
}
}
2 changes: 1 addition & 1 deletion Commands/Public/New-ExoConnection.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ param
$Connection.TenantId = $claims.tid
if($IPPS)
{
$Connection.ConnectionUri = "https://eur01b.ps.compliance.protection.outlook.com/AdminApi/beta/$($Connection.TenantId)/InvokeCommand"
$Connection.ConnectionUri = "https://eur02b.ps.compliance.protection.outlook.com/adminapi/beta/$($Connection.TenantId)/InvokeCommand"
}
else
{
Expand Down
9 changes: 7 additions & 2 deletions Module/ExoHelper/ExoHelper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ This command creates connection for IPPS REST API, retrieves list of sensitivity
Start-Sleep -Seconds $retries
}
}
catch
{
$shouldContinue = $false
throw
}
finally
{
if($ShowRateLimits)
Expand All @@ -289,7 +294,7 @@ This command creates connection for IPPS REST API, retrieves list of sensitivity
}
}
}
}while($null -ne $pageUri -and $resultsRetrieved -lt $ResultSize -and $shouldContinue)
}while($null -ne $pageUri -and ($resultsRetrieved -lt $ResultSize) -and $shouldContinue)
}
}
function New-ExoConnection
Expand Down Expand Up @@ -363,7 +368,7 @@ param
$Connection.TenantId = $claims.tid
if($IPPS)
{
$Connection.ConnectionUri = "https://eur01b.ps.compliance.protection.outlook.com/AdminApi/beta/$($Connection.TenantId)/InvokeCommand"
$Connection.ConnectionUri = "https://eur02b.ps.compliance.protection.outlook.com/adminapi/beta/$($Connection.TenantId)/InvokeCommand"
}
else
{
Expand Down

0 comments on commit bf0e9d3

Please sign in to comment.