microsoftgraph / microsoftgraph/msgraph-sdk-powershell

Get-MgBetaTeamworkDeviceHealth & "Get-MgBetaTeamworkDevice" cmdlets output is incomplete

Open
#2,617 11 comments 0 reactions 1 assignee View on GitHub

@timayabi2020 is already working on this.

Since Apr 25, 2024.

Status: Needs Investigation
Dominant language
C#
Stars
898
Forks
230
Avg merge
2d 5h
Merged PRs (30d)
31

Description

When I run the below cmdlet, the output is incomplete

Get-MgBetaTeamworkDeviceHealth -TeamworkDeviceId cfdfjh7t-0000-9999-c12c-cdb9cc5xxxxx | fl

Out put I get for the above cmdlet

Connection : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphTeamworkConnection
CreatedBy : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphIdentitySet
CreatedDateTime : 1/1/0001 12:00:00 AM
HardwareHealth : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphTeamworkHardwareHealth
Id : cfdfjh7t-0000-9999-c12c-cdb9cc5xxxxx
LastModifiedBy : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphIdentitySet
LastModifiedDateTime : 2/2/2024 2:35:12 PM
LoginStatus : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphTeamworkLoginStatus
PeripheralsHealth : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphTeamworkPeripheralsHealth
SoftwareUpdateHealth : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphTeamworkSoftwareUpdateHealth
AdditionalProperties : {[@odata.context, https://graph.microsoft.com/beta/$metadata#teamwork/devices('cfdfjh7t-0000-9999-c12c-cdb9cc5xxxxx')/health/$entity]}

Expected Output : We have to see the information for the below items too.

Connection
CreatedBy
HardwareHealth

LoginStatus
LastModifiedBy
Loginstatus
Peripherals Health
SoftwareUpdateHealth

Same behavior for the below cmdlet

Get-MgBetaTeamworkDevice -TeamworkDeviceId cfdfjh7t-0000-9999-c12c-cdb9cc5xxxxx | fl

Activity : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphTeamworkDeviceActivity
ActivityState : unknown
CompanyAssetTag :
Configuration : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphTeamworkDeviceConfiguration
CreatedBy : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphIdentitySet
CreatedDateTime : 12/21/2023 8:33:25 PM
CurrentUser : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphTeamworkUserIdentity
DeviceType : collaborationBar
HardwareDetail : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphTeamworkHardwareDetail
Health : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphTeamworkDeviceHealth
HealthStatus : nonUrgent
Id : cfdfjh7t-0000-9999-c12c-cdb9cc5xxxxx
LastModifiedBy : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphIdentitySet
LastModifiedDateTime : 2/29/2024 3:55:31 PM
Notes :
Operations :
AdditionalProperties : {[@odata.context, https://graph.microsoft.com/beta/$metadata#teamwork/devices/$entity]}

From the above output, the below listed items are showing the desired information

Configuration
CreatedBy
CurrentUser
HardwareDetail
Health
LastModifiedBy
AdditionalProperties

Regards,
Sunil

Thanks for reporting the bug. Please ensure you've gone through the following checklist before opening an issue:

Describe the bug

A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Execute -Mg- with ...
  2. See error at ...

Expected behavior

A clear and concise description of what you expected to happen.

Debug Output

Run the problematic command with -Debug and paste the resulting debug stream below.
⚠ ATTENTION: Be sure to remove any sensitive information that may be in the logs.

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

Please run $PSVersionTable and paste the output below. If running the Docker container image, indicate the tag of the image used and the version of Docker engine.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.