Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
The SQL and MySQL resource providers for Azure Stack Hub are deprecated and aren't available for onboarding new customers. Instead, deploy SQL or MySQL directly on virtual machines and manage them by using standard tools and practices. Existing deployments of the resource providers continue to be supported, but no new feature development or onboarding is planned.
When you remove the SQL resource provider, you delete:
- The SQL resource provider.
- The associated plans and quotas that the operator manages.
- The metadata in Azure Stack Hub for the hosting server, database, and logins.
When you remove the SQL resource provider, you don't delete:
- The tenant databases on the hosting servers.
- The packages used to install SQL RP.
To remove the SQL resource provider V1
Verify that you removed all the existing SQL resource provider dependencies.
Note
The uninstallation process continues even if dependent resources currently use the resource provider.
Get a copy of the SQL resource provider installation package, and then run the self-extractor to extract the contents to a temporary directory. To find the download links for the resource provider installers, see Deploy the resource provider prerequisites.
Open a new elevated PowerShell console window and change to the directory where you extracted the SQL resource provider installation files.
Important
Use Clear-AzureRmContext -Scope CurrentUser and Clear-AzureRmContext -Scope Process to clear the cache before running the script.
Run the
DeploySqlProvider.ps1script by using the following parameters:- Uninstall: Removes the resource provider and all associated resources.
- PrivilegedEndpoint: The IP address or DNS name of the privileged endpoint.
- AzureEnvironment: The Azure environment used for deploying Azure Stack Hub. Required only for Microsoft Entra deployments.
- CloudAdminCredential: The credential for the cloud admin, necessary to access the privileged endpoint.
- AzCredential: The credential for the Azure Stack Hub service admin account. Use the same credentials that you used for deploying Azure Stack Hub. The script fails if the account you use with
AzCredentialrequires multifactor authentication (MFA).
To remove the SQL resource provider V2
Sign in to the Azure Stack Hub administrator portal.
Select Marketplace Management on the left, and then select Resource providers.
Select SQL resource provider from the list of resource providers. To find the SQL resource provider, filter the list by entering SQL Server resource provider or MySQL Server resource provider in the search text box.

Select Uninstall from the options at the top of the page.

Enter the name of the resource provider, and then select Uninstall. This action confirms your desire to uninstall:
- The SQL Server resource provider.
- All admin/user created SKU/Quota/HostingServer/Database/Login metadata.
(Optional) If you want to delete the installation package, after uninstalling the SQL resource provider, select Delete from the SQL resource provider page.
