在 Azure Stack Hub 中移除 MySQL 資源提供者Remove the MySQL resource provider in Azure Stack Hub

在您移除 MySQL 資源提供者之前,必須先移除所有提供者相依性。Before you remove the MySQL 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.

移除 MySQL 資源提供者將會刪除由運算子管理的相關計畫和配額。Removing the MySQL resource provider will delete the associated plans and quotas managed by operator. 但不會從主控伺服器刪除租用戶資料庫。But it doesn't delete tenant databases from hosting servers.

移除 MySQL 資源提供者To remove the MySQL resource provider

  1. 確認您已移除所有現有的 MySQL 資源提供者相依性。Verify that you've removed all the existing MySQL resource provider dependencies.

    注意

    即使相依資源目前正在使用資源提供者,解除安裝 MySQL 資源提供者的作業仍會繼續。Uninstalling the MySQL resource provider will proceed even if dependent resources are currently using the resource provider.

  2. 取得一份 MySQL 資源提供者安裝套件複本,然後執行自我解壓縮程式,以將內容解壓縮至暫存目錄。Get a copy of the MySQL resource provider installation package and then run the self-extractor to extract the contents to a temporary directory.

  3. 開啟已提升權限的新 PowerShell 主控台視窗,然後變更至您解壓縮 MySQL 資源提供者安裝檔的目錄。Open a new elevated PowerShell console window and change to the directory where you extracted the MySQL resource provider installation files.

  4. 使用下列參數來執行 DeployMySqlProvider.ps1 指令碼:Run the DeployMySqlProvider.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 administrator, 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. 如果您搭配 AzCredential 使用的帳戶需要 (MFA) 的多重要素驗證,腳本將會失敗。The script will fail if the account you use with AzCredential requires multi-factor authentication (MFA).

後續步驟Next steps

以 PaaS 的形式提供 App ServiceOffer App Services as PaaS