Share via

Get-Teamworkdevice Internal Server Error

Eugenio Zilocchi 0 Reputation points
2023-05-10T10:05:48.5833333+00:00

Hi all,

I want to use the beta graph command "Get-Teamworkdevice" to list all my Teams Phone status..

I tried to use the command (with Powershell 7.3) but I receive Internal Server Error.

Here the debut trace:

PS C:\Program Files\PowerShell\7> Get-MgTeamworkDevice -debug
DEBUG: [CmdletBeginProcessing]: - Get-MgTeamworkDevice begin processing with parameterSet 'List'.
DEBUG: [Authentication]: - AuthType: 'Delegated', AuthProviderType: 'InteractiveAuthenticationProvider', ContextScope: 'CurrentUser', AppName: 'Microsoft Graph Command Line Tools'.
DEBUG: [Authentication]: - Scopes: [Group.Read.All, Group.ReadWrite.All, openid, Organization.Read.All, profile, TeamworkDevice.Read.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

Headers:
FeatureFlag                   : 00000047
Cache-Control                 : no-store, no-cache
SdkVersion                    : graph-powershell/1.27.0,Graph-dotnet-1.25.1
User-Agent                    : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.22621; en-US),PowerShell/7.3.4
Accept-Encoding               : gzip

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
InternalServerError

Headers:
Transfer-Encoding             : chunked
Vary                          : Accept-Encoding
Strict-Transport-Security     : max-age=31536000
request-id                    : 111e8b85-31bd-4be4-9491-d475c1b06200
client-request-id             : 111e8b85-31bd-4be4-9491-d475c1b06200
x-ms-ags-diagnostic           : {"ServerInfo":{"DataCenter":"North Europe","Slice":"E","Ring":"4","ScaleUnit":"002","RoleInstance":"DU2PEPF0001A876"}}
Date                          : Wed, 10 May 2023 09:57:51 GMT

Body:
{
  "error": {
    "code": "InternalServerError",
    "message": "Failed to execute request.",
    "innerError": {
      "date": "2023-05-10T09:57:52",
      "request-id": "111e8b85-31bd-4be4-9491-d475c1b06200",
      "client-request-id": "111e8b85-31bd-4be4-9491-d475c1b06200"
    }
  }
}


Get-MgTeamworkDevice_List: Failed to execute request.
DEBUG: [CmdletEndProcessing]: - Get-MgTeamworkDevice end processing.

Can you help me???
Microsoft Security | Microsoft Graph
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.