Public/generated/Get-KriticalUtcmEXOMigration.ps1

# Kritical.PS.UTCM | Microsoft Graph UTCM REST API toolkit
# (c) 2026 Kritical Pty Ltd | https://kritical.net
# Kritical brand banner is rendered at module load via Write-KriticalUtcmBanner.

function Get-KriticalUtcmEXOMigration {
<#
.SYNOPSIS
    Kritical.UTCM shim for M365DSC resource EXOMigration.

.DESCRIPTION

    Search-replace safe: callers that today invoke
        Get-M365DSCEXOMigration -Credential $cred -TenantId $tid
    can rename to
        Get-KriticalUtcmEXOMigration -Credential $cred -TenantId $tid
    with ZERO other edits. Parameter shape matches the M365DSC .schema.mof
    exactly. By default -PreferM365DscBehavior is true.

    Actual Graph dispatch is delegated to Invoke-KriticalUtcmM365DscSchemaBridge.
    Bridge maps resource → Graph endpoint per per-resource wave; where mapping
    is not yet shipped, bridge returns an object with Verdict='UNMAPPED'.

.NOTES
    Workload: Exchange
    Param count: 18
#>

[CmdletBinding()]
param(
        # The Identity parameter identifies the name of the current migration batch.
[Parameter(Mandatory)] [string]$Identity,
        # The CompleteAfter parameter specifies a delay before the batch is completed.
[string]$CompleteAfter,
        # The AddUsers parameter controls whether additional users can be dynamically added to an existing migration batch after it has been created.
[bool]$AddUsers,
        # The BadItemLimit parameter specifies the maximum number of bad items that are allowed before the migration request fails.
[string]$BadItemLimit,
        # The LargeItemLimit parameter specifies the maximum number of large items that are allowed before the migration request fails.
[string]$LargeItemLimit,
        # The StartAfter parameter specifies a delay before the data migration for the users within the batch is started.
[string]$StartAfter,
        # The Update switch sets the Update flag on the migration batch.
[bool]$Update,
        # The Status parameter returns information about migration users that have the specified status state.
[string]$Status,
        # The SourceEndpoint parameter specifies the migration endpoint to use for the source of the migration batch.
[string]$SourceEndpoint,
        # The TargetDeliveryDomain parameter specifies the FQDN of the external email address created in the source forest for the mail-enabled user when the migration batch is complete.
[string]$TargetDeliveryDomain,
        # Specifies if the migration endpoint should exist or not.
[ValidateSet('Present','Absent')] [string]$Ensure,
        # Credentials of the workload's Admin
[string]$Credential,
        # Id of the Azure Active Directory application to authenticate with.
[string]$ApplicationId,
        # Id of the Azure Active Directory tenant used for authentication.
[string]$TenantId,
        # Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
[string]$CertificateThumbprint,
        # Username can be made up to anything but password will be used for CertificatePassword
[string]$CertificatePassword,
        # Path to certificate used in service principal usually a PFX file.
[string]$CertificatePath,
        # Managed ID being used for authentication.
[bool]$ManagedIdentity
)
    Invoke-KriticalUtcmM365DscSchemaBridge -ResourceName 'EXOMigration' -Workload 'Exchange' -Verb 'Get' -CallerParams $PSBoundParameters
}