From 34cc721cc7c19adf74741cc1a2a86033364ac565 Mon Sep 17 00:00:00 2001 From: Frank Rojas <45807133+frankroj@users.noreply.github.com> Date: Tue, 19 Nov 2024 13:47:03 -0500 Subject: [PATCH] Add error message Add error message that can occur if service principal is already added --- autopilot/includes/create-assigned-device-group.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/autopilot/includes/create-assigned-device-group.md b/autopilot/includes/create-assigned-device-group.md index 39567c33aec..0b53008b350 100644 --- a/autopilot/includes/create-assigned-device-group.md +++ b/autopilot/includes/create-assigned-device-group.md @@ -96,3 +96,14 @@ If the **Intune Provisioning Client** service principal with AppId **f1346770-5b ``` For more information, see [New-MgServicePrincipal -BodyParameter](/powershell/module/microsoft.graph.applications/new-mgserviceprincipal#-bodyparameter). + + > [!NOTE] + > + > If the following message is displayed after running the `New-MgServicePrincipal -AppID f1346770-5b25-470b-88bd-d5744ab7952c` command, it means that the **Intune Provisioning Client service principal** has already been added: + + > ```powershell + > New-MgServicePrincipal : The service principal cannot be created, updated, or restored because the service principal name + > f1346770-5b25-470b-88bd-d5744ab7952c is already in use. + > Status: 409 (Conflict) + > ErrorCode: Request_MultipleObjectsWithSameKeyValue + > ```