Public/Graph/New-KriticalUtcmMgBetaDomain.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper New-MgBetaDomain (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: 28 #> function New-KriticalUtcmMgBetaDomain { [CmdletBinding()] param( [Object] $BodyParameter, [String] $ResponseHeadersVariable, [Hashtable] $AdditionalProperties, [String] $AuthenticationType, [String] $AvailabilityStatus, [Object] $DomainNameReferences, [Object] $FederationConfiguration, [String] $Id, [SwitchParameter] $IsAdminManaged, [SwitchParameter] $IsDefault, [SwitchParameter] $IsInitial, [SwitchParameter] $IsRoot, [SwitchParameter] $IsVerified, [Int32] $PasswordNotificationWindowInDays, [Int32] $PasswordValidityPeriodInDays, [Object] $RootDomain, [Object] $ServiceConfigurationRecords, [Object] $SharedEmailDomainInvitations, [Object] $State, [String[]] $SupportedServices, [Object] $VerificationDnsRecords, [SwitchParameter] $Break, [IDictionary] $Headers, [Object[]] $HttpPipelineAppend, [Object[]] $HttpPipelinePrepend, [Uri] $Proxy, [PSCredential] $ProxyCredential, [SwitchParameter] $ProxyUseDefaultCredentials ) if (-not (Get-Command -Name 'New-MgBetaDomain' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] New-MgBetaDomain not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'New-MgBetaDomain' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/New-KriticalUtcmMgBetaDomain] ' + 'New-MgBetaDomain' + ' failed: ' + $_.Exception.Message) throw } } |