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