I deleted an SQL managed instance before and also want to deleted related resource ,but they cannot be deleted due to virtual cluster ,I try to delete it, but it takes long time for deleting as below screenshot ,but the virtual cluster still exists
Asked
Active
Viewed 487 times
1
-
It may be that the strongly related resources are not deleted, so the deletion task cannot be successfully executed. – Joseph Xu Jun 16 '21 at 02:24
1 Answers
2
You can try deleting the virtual cluster either using Azure CLI or the from the remote PowerShell.
Command to remove the virtual cluster from Remote PowerShell :
Remove-AzSqlVirtualCluster
[-Name] <String>
[-ResourceGroupName] <String>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
CLI cmdlet to remove the virtual cluster from Azure CLI :
az sql virtual-cluster delete [--ids]
[--name]
[--no-wait]
[--resource-group]
[--subscription]

CHEEKATLAPRADEEP
- 12,191
- 1
- 19
- 42

VenkateshDodda
- 4,723
- 1
- 3
- 12
-
@Alex Wang - If the above provided answer was helpful ? If so could you please accept the answer as solution. This could help other community users who have similar query in the future – VenkateshDodda Jun 23 '21 at 05:26
-
I tried, but it still in running status using CLI in powershell like screenshot2 – Alex Wang Jun 25 '21 at 02:18
-
@AlexWang - could you please help us with output of the command that you have ran in the PowerShell as mentioned in screenshot2. – VenkateshDodda Jun 25 '21 at 06:05