Public/Graph/New-KritTcmMgBetaDeviceManagementVirtualEndpointOnPremiseConnection.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper New-MgBetaDeviceManagementVirtualEndpointOnPremiseConnection (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-MgBetaDeviceManagementVirtualEndpointOnPremiseConnection Category: Graph Module: M365DSCGraphShim Params: 31 #> function New-KritTcmMgBetaDeviceManagementVirtualEndpointOnPremiseConnection { [CmdletBinding()] param( [Object] $BodyParameter, [String] $ResponseHeadersVariable, [String] $AdDomainName, [String] $AdDomainPassword, [String] $AdDomainUsername, [Hashtable] $AdditionalProperties, [String] $AlternateResourceUrl, [String] $ConnectionType, [String] $DisplayName, [String] $HealthCheckStatus, [Object] $HealthCheckStatusDetail, [Object] $HealthCheckStatusDetails, [String] $Id, [SwitchParameter] $InUse, [String] $ManagedBy, [String] $OrganizationalUnit, [String] $ResourceGroupId, [String[]] $ScopeIds, [String] $SubnetId, [String] $SubscriptionId, [String] $SubscriptionName, [String] $Type, [String] $VirtualNetworkId, [String] $VirtualNetworkLocation, [SwitchParameter] $Break, [IDictionary] $Headers, [Object[]] $HttpPipelineAppend, [Object[]] $HttpPipelinePrepend, [Uri] $Proxy, [PSCredential] $ProxyCredential, [SwitchParameter] $ProxyUseDefaultCredentials ) if (-not (Get-Command -Name 'New-MgBetaDeviceManagementVirtualEndpointOnPremiseConnection' -ErrorAction SilentlyContinue)) { throw '[KritTcm] New-MgBetaDeviceManagementVirtualEndpointOnPremiseConnection not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'New-MgBetaDeviceManagementVirtualEndpointOnPremiseConnection' @PSBoundParameters } catch { Write-Error ('[KritTcm/New-KritTcmMgBetaDeviceManagementVirtualEndpointOnPremiseConnection] ' + 'New-MgBetaDeviceManagementVirtualEndpointOnPremiseConnection' + ' failed: ' + $_.Exception.Message) throw } } |