简体   繁体   English

是否可以在 Azure 中恢复已删除的 Sql Server 实例?

[英]Is it possible to restore a deleted Sql Server instance in Azure?

I recently deleted a SQL server instance (with 2 sql databases) on my azure portal.我最近在我的 azure 门户上删除了一个 SQL 服务器实例(带有 2 个 sql 数据库)。 I would like to know if there is a way for me to restore the deleted SQL server and the corresponding Sql databases.我想知道有没有办法让我恢复删除的SQL server和对应的Sql数据库。

I would appreciate any help/direction in this regard.我将不胜感激在这方面的任何帮助/方向。

Thanks谢谢

Uma乌玛

When you delete SQL Server from portal, you will get a warning : Warning!当您从门户中删除 SQL Server 时,您将收到警告:警告! Deleting xxx is irreversible.删除 xxx 是不可逆的。 So the best solution to this is to open a support ticket.所以最好的解决办法是开一张支持票。

You could also refer to Can we recover a deleted server for Azure SQL Database?您还可以参考我们可以为 Azure SQL 数据库恢复已删除的服务器吗? for more information.想要查询更多的信息。

Microsoft might be able recover the databases under these conditions:在以下情况下,Microsoft 可能能够恢复数据库:

  • Another SQL Server with the same name was NOT created没有创建另一个同名的 SQL Server
  • Less than 7 days passed since the deletion删除后不到 7 天
  • The Region, SQL Server and Resource Group name must be known必须知道区域、SQL Server 和资源组名称

You need to log a support ticket.您需要记录支持票。 If the server can be recovered, it will be restored.如果服务器可以恢复,它将被恢复。 The databases were not restored in my case, but could be recovered using the normal method for recovering a deleted SQL Database within a SQL server .在我的情况下,数据库没有恢复,但可以使用在SQL 服务器中恢复已删除 SQL 数据库正常方法进行恢复

I was able to restore an sql server by contacting MS support through a support ticket in the Azure portal.我能够通过 Azure 门户中的支持票联系 MS 支持来恢复 sql server。

Key things that must be available:必须提供的关键事项:

  1. The name of the Sql server and database Sql服务器和数据库的名称
  2. The resource group name and time of deletion.资源组名称和删除时间。
  3. You should not have created another sql server resource with the same name in an attempt to recover the sql server.您不应该创建另一个同名的 sql server 资源来尝试恢复 sql server。

I had an ARM template of the resource group that I exported from the portal.我有一个从门户导出的资源组的 ARM 模板。 Without this I would not have remembered the names of the resources above.如果没有这个,我就不会记住上面资源的名称。

Key takeaways:关键要点:

  1. Ensure that users that is not the subscription holder cannot delete resources.确保不是订阅持有者的用户无法删除资源。
  2. Export ARM templates for all RG's - this saved my b**.为所有 RG 导出 ARM 模板 - 这拯救了我的 b**。

Thanks to the MS team for helping me out so quickly!感谢 MS 团队如此迅速地帮助我! They helped me out within an hour!他们在一个小时内帮我解决了! Great service!很棒的服务!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM