Public/Graph/New-KriticalUtcmMgBetaPolicyCrossTenantAccessPolicyPartner.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper New-MgBetaPolicyCrossTenantAccessPolicyPartner (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: 27 #> function New-KriticalUtcmMgBetaPolicyCrossTenantAccessPolicyPartner { [CmdletBinding()] param( [Object] $BodyParameter, [String] $ResponseHeadersVariable, [Hashtable] $AdditionalProperties, [Object] $AppServiceConnectInbound, [Object] $AutomaticUserConsentSettings, [Object] $B2BCollaborationInbound, [Object] $B2BCollaborationOutbound, [Object] $B2BDirectConnectInbound, [Object] $B2BDirectConnectOutbound, [SwitchParameter] $BlockServiceProviderOutboundAccess, [DateTime] $DeletedDateTime, [Object] $IdentitySynchronization, [Object] $InboundTrust, [SwitchParameter] $IsInMultiTenantOrganization, [SwitchParameter] $IsServiceProvider, [Object] $M365Capabilities, [Object] $M365CollaborationInbound, [Object] $M365CollaborationOutbound, [String] $TenantId, [Object] $TenantRestrictions, [SwitchParameter] $Break, [IDictionary] $Headers, [Object[]] $HttpPipelineAppend, [Object[]] $HttpPipelinePrepend, [Uri] $Proxy, [PSCredential] $ProxyCredential, [SwitchParameter] $ProxyUseDefaultCredentials ) if (-not (Get-Command -Name 'New-MgBetaPolicyCrossTenantAccessPolicyPartner' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] New-MgBetaPolicyCrossTenantAccessPolicyPartner not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'New-MgBetaPolicyCrossTenantAccessPolicyPartner' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/New-KriticalUtcmMgBetaPolicyCrossTenantAccessPolicyPartner] ' + 'New-MgBetaPolicyCrossTenantAccessPolicyPartner' + ' failed: ' + $_.Exception.Message) throw } } |