删除 SQL 资源提供程序Remove the SQL resource provider

删除 SQL 资源提供程序之前,必须删除该提供程序的所有依赖项。Before you remove the SQL resource provider, you must remove all the provider dependencies. 你还需要用来安装资源提供程序的部署包的副本。You'll also need a copy of the deployment package that was used to install the resource provider.

备注

可以在部署资源提供程序先决条件中找到资源提供程序安装程序的下载链接。You can find the download links for the resource provider installers in Deploy the resource provider prerequisites.

删除 SQL 资源提供程序会删除操作员管理的关联计划和配额。Removing the SQL resource provider will delete the associated plans and quotas managed by operator. 但它不会从宿主服务器中删除租户数据库。But it doesn't delete tenant databases from hosting servers.

删除 SQL 资源提供程序To remove the SQL resource provider

  1. 确认已删除所有现有的 SQL 资源提供程序依赖项。Verify that you've removed all the existing SQL resource provider dependencies.

    备注

    即使依赖资源当前正在使用 SQL 资源提供程序,也将继续卸载该资源提供程序。Uninstalling the SQL resource provider will proceed even if dependent resources are currently using the resource provider.

  2. 获取 SQL 资源提供程序安装包的副本,然后运行自解压程序,将内容解压缩到一个临时目录。Get a copy of the SQL resource provider installation package and then run the self-extractor to extract the contents to a temporary directory.

  3. 打开一个权限提升的 PowerShell 控制台新窗口,并切换到解压缩后的 SQL 资源提供程序安装文件所在的目录。Open a new elevated PowerShell console window and change to the directory where you extracted the SQL resource provider installation files.

  4. 使用以下参数运行 DeploySqlProvider.ps1 脚本:Run the DeploySqlProvider.ps1 script using the following parameters:

    • Uninstall:删除资源提供程序和所有关联的资源。Uninstall: Removes the resource provider and all associated resources.
    • PrivilegedEndpoint:特权终结点的 IP 地址或 DNS 名称。PrivilegedEndpoint: The IP address or DNS name of the privileged endpoint.
    • AzureEnvironment:用于部署 Azure Stack Hub 的 Azure 环境。AzureEnvironment: The Azure environment used for deploying Azure Stack Hub. 仅对于 Azure AD 部署是必需的。Required only for Azure AD deployments.
    • CloudAdminCredential:访问特权终结点时所需的云管理员凭据。CloudAdminCredential: The credential for the cloud admin, necessary to access the privileged endpoint.
    • AzCredential:Azure Stack Hub 服务管理员帐户的凭据。AzCredential: The credential for the Azure Stack Hub service admin account. 使用部署 Azure Stack Hub 时所用的相同凭据。Use the same credentials that you used for deploying Azure Stack Hub.

后续步骤Next steps

提供应用服务作为 PaaSOffer App Services as PaaS