You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This article provides steps to restore an Azure SQL Database server, also known as a logical server, if it was accidentally deleted.
22
22
23
23
> [!IMPORTANT]
24
-
> Currently, the ability to restore a deleted logical server is in preview. The ability to restore a deleted logical server is enabled only for specific subscriptions, and also for all SQL logical servers that are at least two years old.
24
+
> Currently, the ability to restore or hard delete a deleted logical server is in preview. The ability to restore or hard-delete a deleted logical server is enabled only for specific subscriptions, and also for all SQL logical servers that are at least two years old.
25
+
26
+
## Restore an Azure SQL Database logical server
25
27
26
28
You can restore a deleted Azure SQL logical server and its underlying databases with one of the following two methods:
27
29
28
-
## Restore an Azure SQL Database logical server using PowerShell and REST API
30
+
###Restore an Azure SQL Database logical server using PowerShell and REST API
29
31
30
32
Follow these steps to set up the variables needed to restore the deleted logical server, using PowerShell to invoke a REST API call.
31
33
@@ -64,7 +66,7 @@ Follow these steps to set up the variables needed to restore the deleted logical
64
66
Invoke-AzRestMethod -Path $path -Method PUT -Payload $body
65
67
```
66
68
67
-
## Restore an Azure SQL Database logical server using PowerShell
69
+
###Restore an Azure SQL Database logical server using PowerShell
68
70
69
71
Use the following steps to restore your deleted Azure SQL logical server using [Restore-AzSqlServer](/powershell/module/az.sql/restore-azsqldatabase).
70
72
@@ -114,7 +116,11 @@ Once the logical server is restored, restoring the databases is next. Look in th
## Delete the logical server without possibility of recovery using PowerShell and REST API
119
+
## Delete the logical server without possibility of recovery
120
+
121
+
The ability to hard-delete your logical server, without the possibility of recovery, is currently a limited preview feature enabled only for specific subscriptions, and also for all SQL logical servers that are at least two years old.
122
+
123
+
### Hard-delete a logical server using PowerShell and REST API
118
124
119
125
Follow these steps to set up the variables needed to hard-delete the soft-deleted logical server, using PowerShell to invoke a REST API call.
0 commit comments