Public/Graph/Update-KriticalUtcmMgBetaRoleManagementCloudPcRoleAssignment.ps1

<#
.SYNOPSIS
    Kritical.UTCM wrapper over Microsoft365DSC helper Update-MgBetaRoleManagementCloudPcRoleAssignment
    (category: Graph, module: M365DSCGraphShim).

.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: Graph
    Module: M365DSCGraphShim
    Params: 24
#>

function Update-KriticalUtcmMgBetaRoleManagementCloudPcRoleAssignment {
    [CmdletBinding()]
    param(
        [String] $UnifiedRoleAssignmentMultipleId,
        [Object] $InputObject,
        [Object] $BodyParameter,
        [String] $ResponseHeadersVariable,
        [Hashtable] $AdditionalProperties,
        [String[]] $AppScopeIds,
        [Object] $AppScopes,
        [String] $Condition,
        [String] $Description,
        [String[]] $DirectoryScopeIds,
        [Object] $DirectoryScopes,
        [String] $DisplayName,
        [String] $Id,
        [String[]] $PrincipalIds,
        [Object] $Principals,
        [Object] $RoleDefinition,
        [String] $RoleDefinitionId,
        [SwitchParameter] $Break,
        [IDictionary] $Headers,
        [Object[]] $HttpPipelineAppend,
        [Object[]] $HttpPipelinePrepend,
        [Uri] $Proxy,
        [PSCredential] $ProxyCredential,
        [SwitchParameter] $ProxyUseDefaultCredentials
    )

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