Jump to content


anyweb

Recovering a Windows 365 Cloud PC that was de-provisioned due to license expiration

Recommended Posts

Introduction

Microsoft pushed out some new updates for Windows 365 Cloud PC’s recently and one that we thought was interesting was this one, the ability to recover a Cloud PC that was de-provisioned due to license expiration.

The de-provisioning of a Cloud PC normally means that it is unusable and unrecoverable, it’s a destructive action. However, with this new feature and as long as you have previously enabled Point-in-Time-restore explained here then you should be covered by this new ability (for Windows 365 Cloud PC Enterprise only).

In this blog post myself and my good friend Paul look at the new feature and test it out. We’ll be collaborating on more Windows 365 and Azure Virtual Desktop content during the year so stay tuned on the SCCMentor and windowsnoob websites!

The prerequisites

Before we test it, let’s look at what you need to have in place.

  • To recover a previously de-provisioned Cloud PC, ensure that the expired Windows 365 licenses are renewed. The replacement licenses must be of the same SKU, so if the previous Cloud PC’s were Cloud PC Enterprise 2vCPU/8GB/128GB then the replacement license assigned must be for Cloud PC Enterprise 2vCPU/8GB/128GB.
  • To recover a previously de-provisioned Cloud PC, ensure that the provisioning policy of the de-provisioned Cloud PC still exists.
  • To recover a previously de-provisioned Cloud PC, ensure that assignments with the right users are assigned to the provisioning policy.
  • To recover a previously de-provisioned Cloud PC, ensure the end users still exists, and are still assigned to the same Entra ID groups as before or the ones included in the policy assignments.

Testing the new feature

Ok now that’s all clear, let’s test it out. Before starting, we verified that our test Cloud PC had a point-in-time restore policy (User settings) applied.

every-4-hours.png

We also made sure to place a file on the Cloud PC outside of Onedrive known folders.

file-on-the-pc-outside-of-onedrive.png

And before continuing, we verified that there was at least one backup for this Cloud PC, and there were several.

restore-points-listed.png

Note: If you are also testing this feature and you are doing it on a newly provisioned Cloud PC, you can click on Create restore point to create a manual restore point.

create-manual-restore-point.png

As simulating a license expiry and then re-purchasing the same license is easier said than done we’ll simulate it by deleting a user that was assigned the following Cloud PC SKU: Cloud PC Enterprise 2vCPU/8GB/128GB. Below you can see that user (testuser100@windowsnoob.com) and their respective Cloud PC.

cloud-pc-belonging-to-testuser100-before

Next, we deleted our licensed user.

delete-the-user.png

and were notified of that…

testuser100-has-been-successfully-delete

Shortly after, the status of the Cloud PC that that user was using, changed from Provisioned to In-grace period.

in-grace-period-1.png

Clicking that In-grace period status and selecting Deprovision now, speeds up the testing process.

deprovision-now-1.png

Which kick starts de-provisioning

deprovisioning-in-progress.png

Some time later, the Cloud PC was no longer in the Intune console and was no longer available to the (now deleted) end user to use.

deprovisioning-completed.png

At this point, the de-provisioning process was completed.

Recovering de-provisioned Cloud PCs

In the real world, to see this new feature you’d renew an expired license and make sure that the user/group/policy and so on didn’t change during that time period.  But we are simulating that, so to simulate it we’ll restore the user we deleted earlier, again, nothing else has changed other than that users Cloud PC’s went from in-grace period to de-provisioned.

So let’s restore the deleted user. In Azure (Entra Id) select users, click Deleted users and locate your deleted user. Select the user and click Restore users.

restore-deleted-user.png

You’ll be notified of the restore.

testuser100-has-been-successfully-restor

And as the user was still in the same groups, they’ll pick up the Cloud PC assignments targeting them and a new Cloud PC matching the SKU in question will be provisioned.

provisioning.png

After the Cloud PC is provisioned, you’ll see it appear with a new computer name.

provisioned.png

We need to do some final actions. Select the newly provisioned Cloud PC and click the Restore option.

Restore-button.png

This will show a retention restore point.

retention-restore-point.png

Select it and click the Select option to restore that de-provisioned Cloud PC.

Select.png

You’ll get a popup warning you about the restore.

select-warning-about-the-restore.png

 

Click Restore and the restore will be initiated, you’ll see the status change to Restore pending.

restore-pending.png

And during the restore the status will then change to Restore active.

restore-active.png

and after a while refreshing that device will reveal a ‘Not found‘ statement (sorry no screenshot, we’ll add it shortly). However, if you navigate back to Windows 365 devices, you’ll see that the old name (old Cloud PC) is back !

its-back.png

and logging on to that Cloud PC using the same user will indeed reveal that the content is as expected.

job-done.png

Job done!

 

Read more

  • To learn more about this new feature see Microsoft’s own page here.
  • To learn how to use Point-in-time-restore read here.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.