-
Notifications
You must be signed in to change notification settings - Fork 211
Description
Describe the bug
Today we receive this error on several Microsoft.Graph.Teams Commands.
Last week was everything working fine.
Expected behavior
Team will be created
How to reproduce
$params = @{
"[email protected]" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')"
displayName = "My Sample Team"
description = "My Sample Team’s Description"
}
New-MgTeam -BodyParameter $params
SDK Version
2.26.0 and 2.25.0
Latest version known to work for scenario above?
2.25.0
Known Workarounds
$params = @{
"[email protected]" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')"
displayName = "My Sample Team"
description = "My Sample Team’s Description"
}
Invoke-MgGraphRequest -Uri "https://graph.microsoft.com/v1.0/teams" -Method POST -Body $params
Debug output
Click to expand log
``` New-MgTeam : The following properties cannot be set in the initial POST request. Please set them in a subsequent PATCH request: schedule. Status: 400 (BadRequest) ErrorCode: BadRequest Date: 2025-02-24T15:24:26 Headers: Transfer-Encoding : chunked Vary : Accept-Encoding Strict-Transport-Security : max-age=31536000 request-id : 2e6d463b-0fe2-4c7b-b71d-bbef8f023410 client-request-id : 582ddb2d-520f-4323-987e-dda0f85f1caa x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"005","RoleInstance":"FR3PEPF000002D8"}} Date : Mon, 24 Feb 2025 15:24:25 GMT At line:7 char:1 + New-MgTeam -BodyParameter $params + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: ({ Headers = , b...softGraphTeam }:<>f__AnonymousType1`2) [New-MgTeam_ Create], Exception + FullyQualifiedErrorId : BadRequest,Microsoft.Graph.PowerShell.Cmdlets.NewMgTeam_CreateInvalid URL format specified in @odata.bind for teamsApp
Status: 400 (BadRequest)
ErrorCode: BadRequest
Date: 2025-02-24T15:11:51
Headers:
Transfer-Encoding : chunked
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : ab5b0caa-7b40-42f8-99bf-f983c4601023
client-request-id : c6069f91-78d2-4906-be93-2833c484d170
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"001","RoleInstance":"FR2PEPF0000069B"}}
Date : Mon, 24 Feb 2025 15:11:50 GMT
Invalid URL format specified in @odata.bind for user
Status: 400 (BadRequest)
ErrorCode: BadRequest
Date: 2025-02-24T15:11:59
Headers:
Transfer-Encoding : chunked
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : 9f58cbd2-44a2-4e17-b572-cee799e428e3
client-request-id : 25c17b09-bc04-4eb3-a0c0-92e82bbbede4
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"001","RoleInstance":"FR2PEPF0000069B"}}
Date : Mon, 24 Feb 2025 15:11:59 GMT
</details>
### Configuration
Windows 10 22H2
### Other information
_No response_