Public/Graph/Remove-KriticalUtcmMgBetaRoleManagementCloudPcRoleAssignment.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Remove-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: 12 #> function Remove-KriticalUtcmMgBetaRoleManagementCloudPcRoleAssignment { [CmdletBinding()] param( [String] $UnifiedRoleAssignmentMultipleId, [Object] $InputObject, [String] $IfMatch, [String] $ResponseHeadersVariable, [SwitchParameter] $Break, [IDictionary] $Headers, [Object[]] $HttpPipelineAppend, [Object[]] $HttpPipelinePrepend, [SwitchParameter] $PassThru, [Uri] $Proxy, [PSCredential] $ProxyCredential, [SwitchParameter] $ProxyUseDefaultCredentials ) if (-not (Get-Command -Name 'Remove-MgBetaRoleManagementCloudPcRoleAssignment' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Remove-MgBetaRoleManagementCloudPcRoleAssignment not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Remove-MgBetaRoleManagementCloudPcRoleAssignment' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Remove-KriticalUtcmMgBetaRoleManagementCloudPcRoleAssignment] ' + 'Remove-MgBetaRoleManagementCloudPcRoleAssignment' + ' failed: ' + $_.Exception.Message) throw } } |