Skip to content

Update-MgDeviceManagementDeviceConfiguration - androidDeviceOwnerGeneralDeviceConfiguration and kioskModeAppPositions #1538

@William-Francillette

Description

@William-Francillette

Hi

I am experiencing an issue with Update-MgDeviceManagementDeviceConfiguration on resource of the type #microsoft.graph.androidDeviceOwnerGeneralDeviceConfiguration and the attribute kioskModeAppPositions

I am using the bodyParameter parameter with a hashtable as value equivalent to this JSON (only used for display during the debugging)

        Update-MgDeviceManagementDeviceConfiguration -BodyParameter $UpdateParameters `
            -DeviceConfigurationId $currentInstance.Id
"kioskModeAppPositions":  [
                                  {
                                      "position":  1,
                                      "item":  {
                                                   "@odata.type":  "#microsoft.graph.androidDeviceOwnerKioskModeApp",
                                                   "package":  "myId2"
                                               },
                                      "@odata.type":  "#microsoft.graph.androidDeviceOwnerKioskModeAppPositionItem"
                                  },
                                  {
                                      "position":  3,
                                      "item":  {
                                                   "@odata.type":  "#microsoft.graph.androidDeviceOwnerKioskModeApp",
                                                   "package":  "myId3"
                                               },
                                      "@odata.type":  "#microsoft.graph.androidDeviceOwnerKioskModeAppPositionItem"
                                  }
                              ],
  "@odata.type":  "#microsoft.graph.androidDeviceOwnerGeneralDeviceConfiguration"

The error is the followed

{
  "_version": 3,
  "Message": "The Item field is required. - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 76831ba1-129f-430a-8a7a-9f4e75df21ed - Url: 
https://fef.amsua0102.manage.microsoft.com/DeviceConfiguration_2209/StatelessDeviceConfigurationFEService/deviceManagement/deviceConfigurations%28%2711aef5cc-201b-4c61-bfc9-629cf1678352%27%29?api-version=5022-06-20 - 
CustomApiErrorPhrase: DeviceConfigurationValidationErr",
  "CustomApiErrorPhrase": "DeviceConfigurationValidationErr",
  "RetryAfter": null,
  "ErrorSourceService": "",
  "HttpHeaders": "{}"
}

I have checked the documentation but couldn't figure the right way to build this attribute https://learn.microsoft.com/en-us/graph/api/resources/intune-deviceconfig-androiddeviceownerkioskmodeapppositionitem?view=graph-rest-beta

This is the only attribute I am experiencing an issue with - I was able to consume other complex attributes without issue such as AzureAdSharedDeviceDataClearApps, GlobalProxy, KioskModeApps or ShortHelpText

Thanks,
William

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions