取消 Azure SQL 托管实例管理操作Canceling Azure SQL Managed Instance management operations
Azure SQL 托管实例
Azure SQL 托管实例提供取消某些管理操作(例如,部署新的托管实例或更新实例属性时)的功能。Azure SQL Managed Instance provides the ability to cancel some management operations, such as when you deploy a new managed instance or update instance properties.
概述Overview
所有管理操作可分类为:All management operations can be categorized as follows:
- 部署实例(创建新实例)。Instance deployment (new instance creation).
- 实例更新(更改实例属性,例如 vCore 数或预留存储)。Instance update (changing instance properties, such as vCores or reserved storage).
- 删除实例。Instance deletion.
可以监视管理操作的进度和状态,在必要时取消其中一部分操作。You can monitor progress and status of management operations and cancel some of them if necessary.
下表汇总了管理操作(无论你是否可以取消这些操作)及其常规的总持续时间:The following table summarizes management operations, whether or not you can cancel them, and their typical overall duration:
类别Category | 操作Operation | 可取消Cancelable | 估计取消持续时间Estimated cancel duration |
---|---|---|---|
部署Deployment | 实例创建Instance creation | 是Yes | 90% 的操作可在 5 分钟内完成。90% of operations finish in 5 minutes. |
更新Update | 实例存储纵向缩放(“常规用途”服务层级)Instance storage scaling up/down (General Purpose) | 否No | |
更新Update | 实例存储纵向缩放(“业务关键”服务层级)Instance storage scaling up/down (Business Critical) | 是Yes | 90% 的操作可在 5 分钟内完成。90% of operations finish in 5 minutes. |
更新Update | 实例计算 (vCore) 纵向缩放(“常规用途”)Instance compute (vCores) scaling up and down (General Purpose) | 是Yes | 90% 的操作可在 5 分钟内完成。90% of operations finish in 5 minutes. |
更新Update | 实例计算 (vCore) 纵向缩放(“业务关键”)Instance compute (vCores) scaling up and down (Business Critical) | 是Yes | 90% 的操作可在 5 分钟内完成。90% of operations finish in 5 minutes. |
更新Update | 实例服务层级更改(从“常规用途”更改为“业务关键”,或反之)Instance service tier change (General Purpose to Business Critical and vice versa) | 是Yes | 90% 的操作可在 5 分钟内完成。90% of operations finish in 5 minutes. |
DeleteDelete | 实例删除Instance deletion | 否No | |
删除Delete | 虚拟群集的删除(用户启动的操作)Virtual cluster deletion (as user-initiated operation) | 否No |
取消管理操作Cancel management operation
若要使用 Azure 门户取消管理操作,请执行以下步骤:To cancel management operations using the Azure portal, follow these steps:
转到 Azure 门户Go to the Azure portal
转到 SQL 托管实例的“概述”边栏选项卡。Go to the Overview blade of your SQL Managed Instance.
选择正在执行的操作旁边的“通知”框,以打开“正在执行的操作”页 。Select the Notification box next to the ongoing operation to open the Ongoing Operation page.
选择页面底部的“取消操作”。Select Cancel the operation at the bottom of the page.
确认你想取消操作。Confirm that you want to cancel the operation.
如果取消请求成功,管理操作将取消,并导致失败。If the cancel request succeeds, the management operation is canceled and results in a failure. 你将收到取消成功或失败的通知。You will get a notification that the cancellation succeeds or fails.
如果取消请求失败或取消按钮处于非活动状态,这表示管理操作已进入不可取消状态,将在不久后完成。If the cancel request fails or the cancel button is not active, it means that the management operation has entered non-cancelable state and that will finish shortly. 管理操作将继续执行,直到完成。The management operation will continue its execution until it is completed.
已取消部署请求Canceled deployment request
对于 API 版本 2020-02-02,只要实例创建请求被接受,实例就会开始作为资源存在,无论部署过程的进度如何(托管实例状态是“Provisioning”)。With API version 2020-02-02, as soon as the instance creation request is accepted, the instance starts to exist as a resource, no matter the progress of the deployment process (managed instance status is Provisioning). 如果取消实例部署请求(新建实例),托管实例将从“Provisioning”状态变为“FailedToCreate” 。If you cancel the instance deployment request (new instance creation), the managed instance will go from the Provisioning state to FailedToCreate.
未能创建的实例仍以资源的形式存在且Instances that have failed to create are still present as a resource and:
- 不产生费用Are not charged
- 不计入资源限制(子网或 vCore 配额)Do not count towards resource limits (subnet or vCore quota)
备注
若要最大程度地减少资源或托管实例列表中的干扰,请删除部署失败的实例或已取消部署的实例。To minimize noise in the the list of resources or managed instances, delete instances that have failed to deploy or instances with cancelled deployments.
后续步骤Next steps
- 若要了解如何创建第一个托管实例,请参阅快速入门指南。To learn how to create your first managed instance, see Quickstart guide.
- 有关功能和比较列表,请参阅常用 SQL 功能。For a features and comparison list, see Common SQL features.
- 有关 VNet 配置的详细信息,请参阅 SQL 托管实例 VNet 配置。For more information about VNet configuration, see SQL Managed Instance VNet configuration.
- 有关创建托管实例以及从备份文件还原数据库的快速入门,请参阅创建托管实例。For a quickstart that creates a managed instance and restores a database from a backup file, see Create a managed instance.
- 有关使用 Azure 数据库迁移服务进行迁移的教程,请参阅使用数据库迁移服务进行 SQL 托管实例迁移。For a tutorial about using Azure Database Migration Service for migration, see SQL Managed Instance migration using Database Migration Service.