Skip to content

Commit c445aa7

Browse files
committed
AB#8022 [Windows 365: New] Troubleshoot business grace
1 parent 708eeeb commit c445aa7

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
title: How to Remove Windows 365 Business Cloud PCs from Grace Using Graph Explorer and Microsoft Graph API
3+
description: Learn how to remove Windows 365 Business Cloud PCs from grace period using Microsoft Graph Explorer and API. Step-by-step guide with prerequisites and troubleshooting tips.
4+
manager: dcscontentpm
5+
ms.reviewer: kaushika, anwill
6+
ms.date: 10/22/2025
7+
ms.topic: troubleshooting
8+
ms.custom:
9+
- pcy:Provisioning\Grace Period Issues
10+
- sap:WinComm User Experience
11+
---
12+
# How to remove Windows 365 Business Cloud PCs from grace period using Graph Explorer and Microsoft Graph API
13+
14+
## Summary
15+
16+
When you remove a license from a user, Windows 365 Business Cloud PCs enter a grace period before permanent removal. In some cases, you might want to remove these Cloud PCs from grace manually, such as to reassign the license to another user.
17+
18+
This article provides step-by-step instructions for using Microsoft Graph Explorer and the Microsoft Graph API to perform this deprovision.
19+
20+
## Prerequisites
21+
22+
- Administrator access to your Microsoft 365 tenant
23+
24+
- Permissions to use Microsoft Graph API (Cloud PC administrator or equivalent)
25+
26+
- Access to Microsoft Graph Explorer
27+
28+
- Cloud PCs in `inGracePeriod` status in your Windows 365 environment
29+
30+
## Step 1: Sign in to Graph Explorer
31+
32+
1. Go to [Graph Explorer \| Try Microsoft Graph APIs - Microsoft Graph](https://developer.microsoft.com/en-us/graph/graph-explorer)
33+
34+
1. Select **Sign in to Graph Explorer** (top right corner).
35+
36+
1. Authenticate by using your administrator credentials and set the tenant.
37+
38+
## Step 2: Identify Cloud PCs in grace period
39+
40+
1. In the query box, set the following **GET** request:
41+
42+
> https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/cloudPCs?\$filter=status eq 'inGracePeriod'
43+
44+
1. In Graph Explorer, select **Modify Permissions**.
45+
46+
1. Consent to the following permissions for your session:
47+
48+
- CloudPC.Read.All
49+
50+
- CloudPC.ReadWrite.All
51+
52+
1. If not already granted, select **Consent** to add these permissions.
53+
54+
1. Select **Run Query**.
55+
56+
1. Review the results to locate the Cloud PCs you want to remove. Note the **id** value for each relevant Cloud PC.
57+
58+
## Step 3: Remove a Cloud PC from grace
59+
60+
1. For each Cloud PC, send a **POST** request to remove it from grace. In the query box, select **POST** and use the following request:
61+
62+
> https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/cloudPCs/{cloudPCId}/endGracePeriod
63+
64+
1. Replace `{cloudPCId}` with the actual ID of the Cloud PC. For example:
65+
66+
> https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/cloudPCs/4b18de4b-ab05-4059-8c61-0323a7df4ced/endGracePeriod
67+
68+
1. Leave the request body empty.
69+
70+
1. Select **Run Query**.
71+
72+
1. If successful, you receive a **No Content - 204** response.
73+
74+
## Step 4: Verify removal
75+
76+
1. To confirm removal from grace, repeat the **GET** request from Step 3.
77+
78+
1. The Cloud PC shouldn't appear with status eq 'inGracePeriod'.
79+
80+
## Troubleshooting and notes
81+
82+
- If you receive a permissions error, verify that you have the correct roles and all necessary permissions are consented.
83+
84+
- Changes made through the Graph API might take a few minutes to reflect in the Windows 365 portal.
85+
86+
- Removing a Cloud PC from grace permanently deletes the Cloud PC and any associated user data.
87+
88+
## Additional resources
89+
90+
- Microsoft Graph Cloud PC Documentation
91+
92+
- [List cloudPCs - Microsoft Graph beta \| Microsoft Learn](/graph/api/virtualendpoint-list-cloudpcs?view=graph-rest-beta&tabs=http)
93+
94+
- [cloudPC: endGracePeriod - Microsoft Graph beta \| Microsoft Learn](/graph/api/cloudpc-endgraceperiod?view=graph-rest-beta&tabs=http)

0 commit comments

Comments
 (0)