-
Notifications
You must be signed in to change notification settings - Fork 211
Description
Describe the bug
When using Update-MgApplication with the latest version, all JSON payload except isEnabled is removed.
Expected behavior
The payload must have the following JSON
Body:
{
"appRoles": [
{
"allowedMemberTypes": [
"User",
"Application"
],
"description": "Test description",
"displayName": "Test name",
"id": "<GUID>",
"isEnabled": true,
"origin": "Application",
"value": "App.Test1"
},
{
"allowedMemberTypes": [
"User",
"Application"
],
"description": "Test 2",
"displayName": "Test 2 name",
"id": "<GUID>",
"isEnabled": false,
"origin": "Application",
"value": "App.Test2"
}
]
}
How to reproduce
Install-Module Microsoft.Graph
Run Update-MgApplication to update a app.
SDK Version
2.27.0
Latest version known to work for scenario above?
2.26.1
Known Workarounds
Use the 2.26.1 verson
Debug output
DEBUG: [CmdletBeginProcessing]: - Update-MgApplication begin processing with parameterSet 'UpdateExpanded'.
DEBUG: [Authentication]: - AuthType: 'AppOnly', TokenCredentialType: 'ClientSecret', ContextScope: 'Process', AppName: 'xxxxxx'.
DEBUG: [Authentication]: - Scopes: [Application.ReadWrite.OwnedBy, Application.ReadWrite.All, Directory.Read.All, Application.Read.All].
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
PATCH
Absolute Uri:
https://graph.microsoft.com/v1.0/applications/
Headers:
FeatureFlag : 00000003
Cache-Control : no-store, no-cache
User-Agent : Mozilla/5.0,(Linux; Ubuntu 24.04.2 LTS; ),PowerShell/7.4.7
SdkVersion : graph-powershell/2.27.0
client-request-id : 7306e268-d4c0-4d68-8f3c-b8f58566bcd5
Accept-Encoding : gzip,deflate,b
Body:
{
"appRoles": [
{
"isEnabled": false
},
{
"isEnabled": true
}
]
}
Configuration
- OS: ubuntu-latest (Using Azure Piplines)
Other information
No response