diff --git a/Modules/CIPPCore/Public/GraphHelper/New-ExoBulkRequest.ps1 b/Modules/CIPPCore/Public/GraphHelper/New-ExoBulkRequest.ps1 index 7d967d4f08ba..277802cd8e3e 100644 --- a/Modules/CIPPCore/Public/GraphHelper/New-ExoBulkRequest.ps1 +++ b/Modules/CIPPCore/Public/GraphHelper/New-ExoBulkRequest.ps1 @@ -65,8 +65,8 @@ function New-ExoBulkRequest { try { if ($Select) { $Select = "`$select=$Select" } - $URL = "$ResourceUrl/adminapi/beta/$($tenant.customerId)/InvokeCommand?$Select" - $BatchURL = "$ResourceUrl/adminapi/beta/$($tenant.customerId)/`$batch" + $URL = "$Resource/adminapi/beta/$($tenant.customerId)/InvokeCommand?$Select" + $BatchURL = "$Resource/adminapi/beta/$($tenant.customerId)/`$batch" $BatchBodyObj = @{ requests = @() }