Public/Other/Get-KriticalUtcmAzureBillingAccountsAssociatedTenant.ps1

<#
.SYNOPSIS
    Kritical.UTCM wrapper over Microsoft365DSC helper Get-M365DSCAzureBillingAccountsAssociatedTenant
    (category: Other, module: M365DSCAzureHelper).

.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: Other
    Module: M365DSCAzureHelper
    Params: 1
#>

function Get-KriticalUtcmAzureBillingAccountsAssociatedTenant {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)] [String] $BillingAccountId
    )

    if (-not (Get-Command -Name 'Get-M365DSCAzureBillingAccountsAssociatedTenant' -ErrorAction SilentlyContinue)) {
        throw '[KriticalUtcm] Get-M365DSCAzureBillingAccountsAssociatedTenant not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run'
    }
    try {
        & 'Get-M365DSCAzureBillingAccountsAssociatedTenant' @PSBoundParameters
    } catch {
        Write-Error ('[KriticalUtcm/Get-KriticalUtcmAzureBillingAccountsAssociatedTenant] ' + 'Get-M365DSCAzureBillingAccountsAssociatedTenant' + ' failed: ' + $_.Exception.Message)
        throw
    }
}