From 941942e6f172b3a89592222a0f779636bcd9e326 Mon Sep 17 00:00:00 2001 From: Konstantin Klein <84774014+KonstantinMSFT@users.noreply.github.com> Date: Tue, 19 Aug 2025 11:02:18 +0200 Subject: [PATCH] Fix missing extensionAttributes structure in PowerShell Example 2 for Update-MgDevice.md Example 2 is missing the actual structure or syntax for how to pass extensionAttributes. Please include a working PowerShell snippet with the correct object structure. --- .../v1.0/examples/Update-MgDevice.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDevice.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDevice.md index 5412ecc98ba..fd748ea608b 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDevice.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDevice.md @@ -20,6 +20,8 @@ This example will update the accountenabled property of a device Import-Module Microsoft.Graph.Identity.DirectoryManagement $params = @{ + "extensionAttribute1" = "Value1" + "extensionAttribute2" = "Value2" } Update-MgDevice -DeviceId $deviceId -BodyParameter $params