Public/Graph/ConvertTo-KritTcmGraphShimUri.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper ConvertTo-M365DSCGraphShimUri (category: Graph, module: M365DSCGraphShim). .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: ConvertTo-M365DSCGraphShimUri Category: Graph Module: M365DSCGraphShim Params: 9 #> function ConvertTo-KritTcmGraphShimUri { [CmdletBinding()] param( [Parameter(Mandatory)] [String] $UriTemplate, [String] $Filter, [String[]] $Property, [String[]] $ExpandProperty, [Int32] $Top, [Int32] $Skip, [String] $Search, [String[]] $Sort, [String] $CountVariable ) if (-not (Get-Command -Name 'ConvertTo-M365DSCGraphShimUri' -ErrorAction SilentlyContinue)) { throw '[KritTcm] ConvertTo-M365DSCGraphShimUri not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'ConvertTo-M365DSCGraphShimUri' @PSBoundParameters } catch { Write-Error ('[KritTcm/ConvertTo-KritTcmGraphShimUri] ' + 'ConvertTo-M365DSCGraphShimUri' + ' failed: ' + $_.Exception.Message) throw } } |