Public/Other/Invoke-KritTcmAzureDevOPSWebRequest.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper Invoke-M365DSCAzureDevOPSWebRequest (category: Other, module: M365DSCAzureDevOPSHelper). .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-M365DSCAzureDevOPSWebRequest Category: Other Module: M365DSCAzureDevOPSHelper Params: 4 #> function Invoke-KritTcmAzureDevOPSWebRequest { [CmdletBinding()] param( [Parameter(Mandatory)] [String] $Uri, [String] $Method, [String] $Body, [String] $ContentType ) if (-not (Get-Command -Name 'Invoke-M365DSCAzureDevOPSWebRequest' -ErrorAction SilentlyContinue)) { throw '[KritTcm] Invoke-M365DSCAzureDevOPSWebRequest not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Invoke-M365DSCAzureDevOPSWebRequest' @PSBoundParameters } catch { Write-Error ('[KritTcm/Invoke-KritTcmAzureDevOPSWebRequest] ' + 'Invoke-M365DSCAzureDevOPSWebRequest' + ' failed: ' + $_.Exception.Message) throw } } |