Public/Graph/New-KritTcmMgApplicationOwnerByRef.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper New-MgApplicationOwnerByRef (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: New-MgApplicationOwnerByRef Category: Graph Module: M365DSCGraphShim Params: 14 #> function New-KritTcmMgApplicationOwnerByRef { [CmdletBinding()] param( [String] $ApplicationId, [Object] $InputObject, [Object] $BodyParameter, [String] $ResponseHeadersVariable, [String] $OdataId, [Hashtable] $AdditionalProperties, [SwitchParameter] $Break, [IDictionary] $Headers, [Object[]] $HttpPipelineAppend, [Object[]] $HttpPipelinePrepend, [SwitchParameter] $PassThru, [Uri] $Proxy, [PSCredential] $ProxyCredential, [SwitchParameter] $ProxyUseDefaultCredentials ) if (-not (Get-Command -Name 'New-MgApplicationOwnerByRef' -ErrorAction SilentlyContinue)) { throw '[KritTcm] New-MgApplicationOwnerByRef not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'New-MgApplicationOwnerByRef' @PSBoundParameters } catch { Write-Error ('[KritTcm/New-KritTcmMgApplicationOwnerByRef] ' + 'New-MgApplicationOwnerByRef' + ' failed: ' + $_.Exception.Message) throw } } |