microsoftgraph / microsoftgraph/msgraph-sdk-powershell

Get-MgDevice accepted parameter DeviceId is not relevant

Open
#2,760 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority:p1 type:bug
Dominant language
C#
Stars
898
Forks
230
Avg merge
2d 5h
Merged PRs (30d)
31

Description

Get-MgDevice -DeviceId is quite confusing. As parameter accept Object Id instead of Device Id. When I query a device, Object Id output is Id.

image

I feel this is a design related issue. Accepted parameter requires a change. Command should be like Get-MgDevice -Id

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Get-MgDevice command and the definition of its accepted -DeviceId parameter. Check how the command exposes the device object's Id, then verify the requested parameter naming can be applied consistently; done means the command uses -Id instead of -DeviceId and the resulting help or behavior matches the request.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
api, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.