title | description | services | ms.service | ms.subservice | ms.custom | ms.devlang | ms.topic | author | ms.author | ms.reviewer | manager | ms.date |
---|---|---|---|---|---|---|---|---|---|---|---|---|
How to uninstall elastic database jobs tool |
Learn how to uninstall the elastic database jobs components using the Azure portal of PowerShell. |
sql-database |
sql-database |
elastic-scale |
conceptual |
stevestein |
sstein |
craigg |
06/14/2018 |
[!INCLUDE elastic-database-jobs-deprecation]
Elastic Database jobs components can be uninstalled using either the Azure portal or PowerShell.
- Open the Azure portal.
- Navigate to the subscription that contains Elastic Database jobs components, namely the subscription in which Elastic Database jobs components were installed.
- Click Browse and click Resource groups.
- Select the resource group named "__ElasticDatabaseJob".
- Delete the resource group.
-
Launch a Microsoft Azure PowerShell command window and navigate to the tools sub-directory under the Microsoft.Azure.SqlDatabase.Jobs.x.x.xxxx.x folder: Type cd tools.
PS C:*Microsoft.Azure.SqlDatabase.Jobs.x.x.xxxx.x*>cd tools
-
Execute the .\UninstallElasticDatabaseJobs.ps1 PowerShell script.
PS C:*Microsoft.Azure.SqlDatabase.Jobs.x.x.xxxx.x*\tools>Unblock-File .\UninstallElasticDatabaseJobs.ps1 PS C:*Microsoft.Azure.SqlDatabase.Jobs.x.x.xxxx.x*\tools>.\UninstallElasticDatabaseJobs.ps1
Or simply, execute the following script, assuming default values where used on installation of the components:
$ResourceGroupName = "__ElasticDatabaseJob"
Switch-AzureMode AzureResourceManager
$resourceGroup = Get-AzureResourceGroup -Name $ResourceGroupName
if(!$resourceGroup)
{
Write-Host "The Azure Resource Group: $ResourceGroupName has already been deleted. Elastic database job components are uninstalled."
return
}
Write-Host "Removing the Azure Resource Group: $ResourceGroupName. This may take a few minutes.”
Remove-AzureResourceGroup -Name $ResourceGroupName -Force
Write-Host "Completed removing the Azure Resource Group: $ResourceGroupName. Elastic database job compoennts are now uninstalled."
To re-install Elastic Database jobs, see Installing the Elastic Database job service
For an overview of Elastic Database jobs, see Elastic Database jobs overview.