Public/Other/Invoke-KritTcmLicensingWebRequest.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper Invoke-M365DSCLicensingWebRequest (category: Other, module: M365DSCLicensingHelper). .DESCRIPTION Auto-scaffolded wave .1514 by New-KritTcmFromM365DscHelpers.ps1. Thin delegating passthrough — logic stays in Microsoft365DSC upstream; Krit.TCM provides the friendly namespace + citation registration for HARD RULE 20 discipline. Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling. .NOTES Wave .1514. Underlying cmdlet: Invoke-M365DSCLicensingWebRequest Category: Other Module: M365DSCLicensingHelper Params: 3 #> function Invoke-KritTcmLicensingWebRequest { [CmdletBinding()] param( [Parameter(Mandatory)] [String] $Uri, [String] $Method, [Hashtable] $Body ) if (-not (Get-Command -Name 'Invoke-M365DSCLicensingWebRequest' -ErrorAction SilentlyContinue)) { throw '[KritTcm] Invoke-M365DSCLicensingWebRequest not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Invoke-M365DSCLicensingWebRequest' @PSBoundParameters } catch { Write-Error ('[KritTcm/Invoke-KritTcmLicensingWebRequest] ' + 'Invoke-M365DSCLicensingWebRequest' + ' failed: ' + $_.Exception.Message) throw } } |