Public/Graph/New-KriticalUtcmMgBetaDeviceManagementVirtualEndpointOnPremiseConnection.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper New-MgBetaDeviceManagementVirtualEndpointOnPremiseConnection (category: Graph, module: M365DSCGraphShim). .DESCRIPTION Thin delegating passthrough — logic stays in Microsoft365DSC upstream; Kritical.UTCM provides the friendly namespace + citation registration. Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling. .NOTES Category: Graph Module: M365DSCGraphShim Params: 31 #> function New-KriticalUtcmMgBetaDeviceManagementVirtualEndpointOnPremiseConnection { [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 '[KriticalUtcm] New-MgBetaDeviceManagementVirtualEndpointOnPremiseConnection not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'New-MgBetaDeviceManagementVirtualEndpointOnPremiseConnection' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/New-KriticalUtcmMgBetaDeviceManagementVirtualEndpointOnPremiseConnection] ' + 'New-MgBetaDeviceManagementVirtualEndpointOnPremiseConnection' + ' failed: ' + $_.Exception.Message) throw } } |