Skip to content

Non-existing/functional Update commandlets #2502

Closed
@bartvermeersch

Description

@bartvermeersch

Describe the bug
The SDK contains non functional commandlets, not supported by the graph.
According to the graph documentation privilegedAccessGroupAssignmentSchedule only supports list and get actions. The SDK also promises Update-MgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule (patch) but it always fails.

To Reproduce
$group = ""
$t = Get-MgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule -Filter "groupId eq '$group'"

#GET works
Get-MgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule -PrivilegedAccessGroupAssignmentScheduleId $t[0].id

#PATCH fails (BodyParameter removed for brevity)
Update-MgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule -PrivilegedAccessGroupAssignmentScheduleId $t[0].id

Expected behavior
Non-functional commandlets should not be published/visible

Debug Output
Update-MgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule_Update: {"message":"No HTTP resource was found that matches the request URI 'https://api.azrbac.mspim.azure.com/api/v3/privilegedAccessGroupAssignmentSchedules('GUID1_member_GUID2')?'."}

Status: 404 (NotFound)
ErrorCode: UnknownError
Module Version

Please run Get-Module Microsoft.Graph* after cmdlet execution and paste the output below.
If a module cannot be installed or imported, please run Get-Module -ListAvailable and paste the output.

Environment Data
PS v7.4.0 SDK v2.11.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions