Microsoft Security | Microsoft Graph
An API that connects multiple Microsoft services, enabling data access and automation across platforms
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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???
An API that connects multiple Microsoft services, enabling data access and automation across platforms