Symptoms
- A whole workspace has disappeared from the workspace list for everyone, including its admins.
- Reports and apps built on its semantic models fail. Pipelines, notebooks and shortcuts in other workspaces that point at its lakehouses or warehouses fail with not-found or access errors.
- Scheduled refreshes and pipeline runs in the workspace stop.
- In OneLake catalog > Govern > Workspaces, a tenant admin sees the workspace with the status Deleted.
A deleted workspace is not purged right away. It stays in the Deleted state for the retention period, and a tenant admin can restore it with its contents. When the period ends, the workspace moves to Removing and is gone for good. That deadline drives everything below.
| Retention | Default | Configurable |
|---|---|---|
| Collaborative workspaces | 7 days | 7 to 90 days (tenant setting) |
| My workspaces | 30 days | Fixed |
Caution
Do not lower Define workspace retention period during the incident. The new value also applies to workspaces that are already deleted. A shorter value can make your workspace eligible for permanent deletion straight away, with no grace period. If anything, raise it to 90 days now to buy time.
1. Confirm it was deleted, not hidden
Before you restore anything, rule out the cheaper explanations:
| What you see | Likely cause | Fix |
|---|---|---|
| Admin sees it as Deleted | Workspace deleted | Restore (step 3) |
| Admin sees it as active, users can't see it | Users removed from workspace roles or group | Re-add role assignments |
| Workspace visible, content fails with capacity errors | Capacity paused or throttled | Resume the capacity |
| Only one lakehouse or pipeline missing | Item deleted, not the workspace | Item-level recovery (see below) |
List deleted workspaces with the Fabric admin API. You need the Fabric administrator role. az rest gets the token for you:
az login
az rest --method get \
--url "https://api.fabric.microsoft.com/v1/admin/workspaces?state=Deleted" \
--resource "https://api.fabric.microsoft.com" \
--query "workspaces[].{id:id, name:name, type:type, state:state, capacity:capacityId}" -o table
The response is paginated. If it includes a continuationToken, call again with &continuationToken=<token>. The Power BI admin API gives the same list:
Install-Module MicrosoftPowerBIMgmt -Scope CurrentUser
Connect-PowerBIServiceAccount
$r = Invoke-PowerBIRestMethod -Method Get `
-Url "admin/groups?`$filter=state eq 'Deleted'&`$top=500" | ConvertFrom-Json
$r.value | Select-Object id, name, type, state | Format-Table
$top is required on that endpoint. Write down the workspace ID and the original name. You need both.
2. Freeze the blast radius
While you prepare the restore:
- Pause schedules and triggers in other workspaces that write to or read from the deleted one. Otherwise they keep failing and paging, and some may create replacement items with the same names.
- Tell users not to create a new workspace with the old name. A new, empty workspace with the same name confuses scripts and people. Scripts that look up the workspace by name may also pick the empty one.
- If a Git-connected workspace or a deployment pipeline targets this workspace, do not run a sync or deploy into a newly created workspace yet. That can re-create item definitions with no data and make the clean-up harder.
3. Restore the workspace
From the portal
- Sign in as a tenant admin and go to OneLake catalog > Govern > Workspaces.
- Filter or sort by status and find the workspace with status Deleted. Collaborative workspaces have type Workspace.
- Select it, then choose Restore on the ribbon (or More options (...) > Restore).
- In Restore workspaces, enter a name and assign at least one user the Admin role. Use the original name if you can, so that people and scripts can find it.
- Select Restore.
From the API
Fabric admin API (preview at the time of writing; check the current docs for its status):
WS_ID="00000000-0000-0000-0000-000000000000"
ADMIN_OID=$(az ad user show --id oncall.admin@contoso.com --query id -o tsv)
az rest --method post \
--url "https://api.fabric.microsoft.com/v1/admin/workspaces/$WS_ID/restore" \
--resource "https://api.fabric.microsoft.com" \
--headers "Content-Type=application/json" \
--body "{\"newWorkspaceAdminPrincipal\": {\"id\": \"$ADMIN_OID\", \"type\": \"User\"}}"
newWorkspaceName is required only when you restore a My workspace. You can add it to the body to rename a collaborative workspace.
Power BI admin API equivalent:
$wsId = "00000000-0000-0000-0000-000000000000"
$body = @{ name = "Sales Production"; emailAddress = "oncall.admin@contoso.com" } | ConvertTo-Json
Invoke-PowerBIRestMethod -Method Post -Url "admin/groups/$wsId/restore" -Body $body
Both calls need a Fabric administrator with Tenant.ReadWrite.All. Both endpoints have rate limits, so don't run them in a tight retry loop.
Tip
A deleted My workspace (for example, after its owner left and was removed from Entra ID) restores as a normal collaborative workspace of type Workspace. Give it a clear name and a real admin, then move the content somewhere it belongs.
4. Validate before you reopen traffic
Restoring the workspace doesn't mean every dependency works again. Check each one:
# Workspace is active and on the expected capacity
az rest --method get \
--url "https://api.fabric.microsoft.com/v1/workspaces/$WS_ID" \
--resource "https://api.fabric.microsoft.com" \
--query "{name:displayName, capacity:capacityId}"
# Items are back
az rest --method get \
--url "https://api.fabric.microsoft.com/v1/workspaces/$WS_ID/items" \
--resource "https://api.fabric.microsoft.com" \
--query "value[].{type:type, name:displayName}" -o table
If the workspace isn't on the right capacity, assign it:
az rest --method post \
--url "https://api.fabric.microsoft.com/v1/workspaces/$WS_ID/assignToCapacity" \
--resource "https://api.fabric.microsoft.com" \
--headers "Content-Type=application/json" \
--body '{"capacityId": "<capacity-guid>"}'
Then work through this list:
- Compare the item list with your Git repository or last inventory. Microsoft's docs say only that the workspace is restored "and its contents". They don't list item types, so check each critical item.
- Open the main lakehouse and warehouse and run a row count on key tables.
- Workspace role assignments: the restore only sets the admin you named. Re-add members, contributors and viewers, preferably as Entra groups.
- Item-level shares and app audiences: re-share where needed.
- Semantic model refresh: credentials, gateway connections and schedules. Run one refresh manually.
- Pipelines and notebooks in other workspaces: confirm they resolve the restored workspace and item IDs, then re-enable the schedules you paused in step 2.
- Git connection and deployment pipeline assignment: reconnect if needed, and check the sync direction before you sync.
5. Find out who deleted it
Pull the activity log for the day of the deletion. Get-PowerBIActivityEvent needs a start and end time within the same UTC day:
$events = Get-PowerBIActivityEvent `
-StartDateTime '2026-11-16T00:00:00' -EndDateTime '2026-11-16T23:59:59' |
ConvertFrom-Json
$events | Where-Object { $_.Activity -match 'Delete' -and $_.WorkSpaceName -eq 'Sales Production' } |
Select-Object CreationTime, UserId, Activity, WorkSpaceName
Activity names vary across the Power BI and Fabric workloads. Filter broadly, then narrow down. The same events are in Microsoft Purview audit if your tenant keeps them longer there.
When only an item was deleted
Fabric also has item-level recovery, separate from workspace retention. It is on by default for 3 days, configurable from 3 to 90, and covers item types such as Lakehouse, Warehouse, Data pipeline, Notebook and Mirrored database. Check the current list for your tenant. Shared item permissions aren't restored, and soft-deleted items still count towards OneLake storage.
Prevent it next time
- Set Define workspace retention period to 90 days for collaborative workspaces. The cost of keeping deleted workspaces longer is small compared with losing production.
- Keep the workspace Admin role to a small Entra group. Give engineers Member or Contributor, which can't delete the workspace.
- Connect production workspaces to Git so item definitions can be rebuilt. Git doesn't hold the data in your lakehouse tables, so plan separate copies of critical tables.
- Alert on workspace delete events from the activity log or Purview audit, and send the alert to the data platform on-call, not just to a mailbox.
- Add "list deleted workspaces" and "restore workspace" to your runbook with the exact admin accounts that can run them. Test it once in a non-production tenant or workspace.
Get the weekly HubDatAI email
One email a week with everything new: posts, learning sessions and videos. Free, no spam, unsubscribe in one click. What you get