Public/Other/New-KriticalUtcmAzureBillingAccountsRoleAssignment.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper New-M365DSCAzureBillingAccountsRoleAssignment (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: 2 #> function New-KriticalUtcmAzureBillingAccountsRoleAssignment { [CmdletBinding()] param( [Parameter(Mandatory)] [String] $BillingAccountId, [Parameter(Mandatory)] [Hashtable] $Body ) if (-not (Get-Command -Name 'New-M365DSCAzureBillingAccountsRoleAssignment' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] New-M365DSCAzureBillingAccountsRoleAssignment not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'New-M365DSCAzureBillingAccountsRoleAssignment' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/New-KriticalUtcmAzureBillingAccountsRoleAssignment] ' + 'New-M365DSCAzureBillingAccountsRoleAssignment' + ' failed: ' + $_.Exception.Message) throw } } |