File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
CIPPCore/Public/Entrypoints
CippExtensions/Public/HIBP Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Function Invoke-ListBreachesTenant {
17
17
} else {
18
18
$filter = $null
19
19
}
20
- $usersResults = (Get-CIPPAzDataTableEntity @Table - Filter $filter ).breaches | ConvertFrom-Json
20
+ $usersResults = (Get-CIPPAzDataTableEntity @Table - Filter $filter ).breaches | ConvertFrom-Json - ErrorAction SilentlyContinue
21
21
22
22
# Associate values to output bindings by calling 'Push-OutputBinding'.
23
23
Push-OutputBinding - Name Response - Value ([HttpResponseContext ]@ {
Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ function Get-BreachInfo {
5
5
$TenantFilter
6
6
)
7
7
$Data = New-GraphGetRequest - uri ' https://graph.microsoft.com/beta/domains' - tenantid $TenantFilter | ForEach-Object {
8
- $uri = ' https://geoipdb.azurewebsites.net/api/Breach?func=domain&domain=limenetworks.nl'
9
- Invoke-RestMethod - Uri $uri
8
+ Invoke-RestMethod - Uri " https://geoipdb.azurewebsites.net/api/Breach?func=domain&domain=$ ( $_.id ) "
10
9
}
11
10
return $Data
12
11
}
You can’t perform that action at this time.
0 commit comments