Public/Utility/Invoke-KriticalUtcmGraphBatchRequest.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Invoke-M365DSCGraphBatchRequest (category: Utility, module: M365DSCUtil). .DESCRIPTION Thin delegating passthrough — logic stays in Microsoft365DSC upstream; Kritical.UTCM provides the friendly namespace + citation registration. Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling. .NOTES Category: Utility Module: M365DSCUtil Params: 4 #> function Invoke-KriticalUtcmGraphBatchRequest { [CmdletBinding()] param( [Parameter(Mandatory)] [Hashtable[]] $Requests, [SwitchParameter] $AsList, [Int32] $ThrottlingDelayInSeconds, [Int32] $BatchRequestSize ) if (-not (Get-Command -Name 'Invoke-M365DSCGraphBatchRequest' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Invoke-M365DSCGraphBatchRequest not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Invoke-M365DSCGraphBatchRequest' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Invoke-KriticalUtcmGraphBatchRequest] ' + 'Invoke-M365DSCGraphBatchRequest' + ' failed: ' + $_.Exception.Message) throw } } |