Public/Other/Remove-KritTcmAzureBillingAccountsRoleAssignment.ps1

<#
.SYNOPSIS
    Krit.TCM wrapper over Microsoft365DSC helper Remove-M365DSCAzureBillingAccountsRoleAssignment
    (category: Other, module: M365DSCAzureHelper).

.DESCRIPTION
    Auto-scaffolded wave .1514 by New-KritTcmFromM365DscHelpers.ps1.
    Thin delegating passthrough — logic stays in Microsoft365DSC upstream;
    Krit.TCM provides the friendly namespace + citation registration
    for HARD RULE 20 discipline.

    Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling.

.NOTES
    Wave .1514. Underlying cmdlet: Remove-M365DSCAzureBillingAccountsRoleAssignment
    Category: Other
    Module: M365DSCAzureHelper
    Params: 2
#>

function Remove-KritTcmAzureBillingAccountsRoleAssignment {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)] [String] $BillingAccountId,
        [Parameter(Mandatory)] [String] $AssignmentId
    )

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