Public/Other/Remove-KritTcmAzureBillingAccountsAssociatedTenant.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper Remove-M365DSCAzureBillingAccountsAssociatedTenant (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-M365DSCAzureBillingAccountsAssociatedTenant Category: Other Module: M365DSCAzureHelper Params: 2 #> function Remove-KritTcmAzureBillingAccountsAssociatedTenant { [CmdletBinding()] param( [Parameter(Mandatory)] [String] $BillingAccountId, [Parameter(Mandatory)] [String] $AssociatedTenantId ) if (-not (Get-Command -Name 'Remove-M365DSCAzureBillingAccountsAssociatedTenant' -ErrorAction SilentlyContinue)) { throw '[KritTcm] Remove-M365DSCAzureBillingAccountsAssociatedTenant not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Remove-M365DSCAzureBillingAccountsAssociatedTenant' @PSBoundParameters } catch { Write-Error ('[KritTcm/Remove-KritTcmAzureBillingAccountsAssociatedTenant] ' + 'Remove-M365DSCAzureBillingAccountsAssociatedTenant' + ' failed: ' + $_.Exception.Message) throw } } |