Open cgskreddy opened 6 months ago
Module details: PS C:\Windows\System32> Get-Module Microsoft.Graph*
ModuleType Version PreRelease Name ExportedCommands
Script 2.14.1 Microsoft.Graph.Authentication {Add-MgEnvironment, Connect-MgGraph, Disconnect-M… Script 2.14.1 Microsoft.Graph.Beta.Teams {Add-MgBetaChatMember, Add-MgBetaTeamChannelMembe…
Environment Data PS C:\Windows\System32> $psversiontable
Name Value
PSVersion 7.4.1 PSEdition Core GitCommitId 7.4.1 OS Microsoft Windows 10.0.19045 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0
Updated the ticket with "Get-Module Microsoft.Graph*" & $psversiontable details
Hello @cgskreddy, have you tried using the -Select
parameter to specify the properties you would like to see? Some workloads don't return all the available properties.
Also, have you tried interrogating those properties independently? Things like Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphTeamworkDeviceActivity don't always mean an empty string but rather the type of object that the property holds, you might just have to do something like: (Get-MgBetaTeamworkDeviceHealth -TeamworkDeviceId cfdfjh7t-0000-9999-c12c-cdb9cc5xxxxx).Activity
I tried both the options but no luck. below is a snapshot of the output I see.
[image: image.png]
Regards, Sunil
On Thu, Feb 29, 2024 at 2:53 PM SeniorConsulting @.***> wrote:
Also, have you tried interrogating those properties independently? Things like Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphTeamworkDeviceActivity don't always mean an empty string but rather the type of object that the property holds, you might just have to do something like: (Get-MgBetaTeamworkDeviceHealth -TeamworkDeviceId cfdfjh7t-0000-9999-c12c-cdb9cc5xxxxx).Activity
— Reply to this email directly, view it on GitHub https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/2617#issuecomment-1971853333, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN6RKQSG6H27JBKXWZIFJD3YV6DNJAVCNFSM6AAAAABEAGSA66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZRHA2TGMZTGM . You are receiving this because you were mentioned.Message ID: @.***>
@cgskreddy, unfortunately, the image you tried to send didn't make it into the comment. Could you try sending it from GitHub's web or mobile interface instead of using email?
Find attached the snapshot of the same.
Hi @cgskreddy as we investigate this issue, kindly do the following so as to unblock you.
Run the command with -Debug.i.e Get-MgBetaTeamworkDeviceHealth -TeamworkDeviceId <YourTeamDeviceID> -Debug
Copy the absolute Uri from the debug information. .
Use Invoke-MgGraphRequestCommand
. i.e. $result = Invoke-MgGraphRequest -Uri <Paste the absolute uri here> -OutputType PSObject
Access the properties from the variable assigned to that command. e.g $result.PartnerAgentSoftwareUpdateStatus
Find attached the output of the cmdlet. githubtest1a.txt
Hi,
Find attached the output.
Regards, Sunil
On Thu, Mar 14, 2024 at 12:59 PM Tim @.***> wrote:
Hi @cgskreddy https://github.com/cgskreddy as we investigate this issue, kindly do the following so as to unblock you.
1.
Run the command with -Debug.i.e Get-MgBetaTeamworkDeviceHealth -TeamworkDeviceId
-Debug 2. Copy the absolute Uri from the debug information. image.png (view on web) https://github.com/microsoftgraph/msgraph-sdk-powershell/assets/10947120/0c899050-1db9-497b-8a83-1c18a7c445dd . 3.
Use Invoke-MgGraphRequestCommand. i.e. $result = Invoke-MgGraphRequest -Uri
-OutputType PSObject 4. Access the properties from the variable assigned to that command. e.g $result.PartnerAgentSoftwareUpdateStatus
— Reply to this email directly, view it on GitHub https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/2617#issuecomment-1997922307, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN6RKQQUZX5JXJR6O6OOUM3YYHJOTAVCNFSM6AAAAABEAGSA66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJXHEZDEMZQG4 . You are receiving this because you were mentioned.Message ID: @.***>
PS C:\Users\abccc> Get-MgBetaTeamworkDeviceHealth -TeamworkDeviceId b11de45a-304a-4670-800f-0e3953a6581d -Debug DEBUG: [CmdletBeginProcessing]: - Get-MgBetaTeamworkDeviceHealth begin processing with parameterSet 'Get'. DEBUG: [Authentication]: - AuthType: 'Delegated', TokenCredentialType: 'InteractiveBrowser', ContextScope: 'CurrentUser', AppName: 'Microsoft Graph Command Line Tools'. DEBUG: [Authentication]: - Scopes: [AuditLog.Read.All, Directory.AccessAsUser.All, Group.Read.All, GroupMember.Read.All, openid, Organization.Read.All, profile, TeamworkDevice.Read.All, TeamworkDevice.ReadWrite.All, User.Read, User.Read.All, User.ReadWrite.All, email]. DEBUG: ============================ HTTP REQUEST ============================
HTTP Method: GET
Absolute Uri: https://graph.microsoft.com/beta/teamwork/devices/b11de45a-304a-4670-800f-0e3953a6581d/health
Headers: FeatureFlag : 00000043 Cache-Control : no-store, no-cache User-Agent : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.19045; en-US),PowerShell/7.4.1 Accept-Encoding : gzip SdkVersion : graph-powershell-beta/2.15.0 client-request-id : 7d44b931-d3f7-4d2f-98a1-8726282c3f9d
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code: OK
Headers: Vary : Accept-Encoding Strict-Transport-Security : max-age=31536000 request-id : 6bced605-8825-43fc-b172-4924c4e87ea0 client-request-id : 7d44b931-d3f7-4d2f-98a1-8726282c3f9d x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"MN1PEPF0000F502"}} odata-version : 4.0 Date : Fri, 15 Mar 2024 14:37:03 GMT
Body: { @.***": https://graph.microsoft.com/beta/$metadata#teamwork/devices('b11de45a-304a-4670-800f-0e3953a6581d')/health/$entity, "id": "b11de45a-304a-4670-800f-0e3953a6581d", "createdDateTime": "0001-01-01T00:00:00Z", "lastModifiedDateTime": "0001-01-01T00:00:00Z", "createdBy": null, "lastModifiedBy": null, "connection": { "connectionStatus": "connected", "lastModifiedDateTime": "2024-03-15T14:36:38Z" }, "loginStatus": { "exchangeConnection": { "connectionStatus": "unknown", "lastModifiedDateTime": "2023-12-21T20:33:25Z" }, "teamsConnection": { "connectionStatus": "unknown", "lastModifiedDateTime": "2023-12-21T20:33:25Z" }, "skypeConnection": { "connectionStatus": "unknown", "lastModifiedDateTime": "2023-12-21T20:33:25Z" } }, "peripheralsHealth": { "roomCameraHealth": { "isOptional": null, "connection": { "connectionStatus": "unknown", "lastModifiedDateTime": null } }, "contentCameraHealth": { "isOptional": null, "connection": { "connectionStatus": "unknown", "lastModifiedDateTime": null } }, "speakerHealth": { "isOptional": null, "connection": { "connectionStatus": "unknown", "lastModifiedDateTime": null } }, "communicationSpeakerHealth": { "isOptional": null, "connection": { "connectionStatus": "unknown", "lastModifiedDateTime": null } }, "displayHealthCollection": [], "microphoneHealth": { "isOptional": null, "connection": { "connectionStatus": "unknown", "lastModifiedDateTime": null } } }, "softwareUpdateHealth": { "operatingSystemSoftwareUpdateStatus": null, "adminAgentSoftwareUpdateStatus": { "softwareFreshness": "latest", "currentVersion": "1.0.0.202310260109.product", "availableVersion": null }, "companyPortalSoftwareUpdateStatus": { "softwareFreshness": "latest", "currentVersion": "5.0.6061.0", "availableVersion": null }, "teamsClientSoftwareUpdateStatus": { "softwareFreshness": "updateAvailable", "currentVersion": "1449/1.0.96.2023111001", "availableVersion": "1449/1.0.96.2023120801" }, "firmwareSoftwareUpdateStatus": { "softwareFreshness": "updateAvailable", "currentVersion": "4.1.2.388101", "availableVersion": "4.1.3.394009" }, "partnerAgentSoftwareUpdateStatus": { "softwareFreshness": "latest", "currentVersion": "4.1.1-1013403", "availableVersion": null } }, "hardwareHealth": { "computeHealth": { "isOptional": null, "connection": { "connectionStatus": "connected", "lastModifiedDateTime": null } }, "hdmiIngestHealth": { "isOptional": null, "connection": { "connectionStatus": "unknown", "lastModifiedDateTime": null } } } }
DEBUG: [CmdletEndProcessing]: - Get-MgBetaTeamworkDeviceHealth end processing. Id CreatedDateTime LastModifiedDateTime
b11de45a-304a-4670-800f-0e3953a6581d 1/1/0001 12:00:00 AM 1/1/0001 12:00:00 AM
PS C:\Users\abccc> $result = Invoke-MgGraphRequest -Uri https://graph.microsoft.com/beta/teamwork/devices/b11de45a-304a-4670-800f-0e3953a6581d/health PS C:\Users\abccc> $result.PartnerAgentSoftwareUpdateStatus PS C:\Users\abccc> $result = Invoke-MgGraphRequest -Uri https://graph.microsoft.com/beta/teamwork/devices/b11de45a-304a-4670-800f-0e3953a6581d/health -OutputType PSObject PS C:\Users\abccc> $result.PartnerAgentSoftwareUpdateStatus
Hello, do you have any update? I have the same issue.
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
To Reproduce Steps to reproduce the behavior:
-Mg-
with...
...
Expected behavior
Debug Output
Module Version
Environment Data
Screenshots
Additional context