Reputation: 113
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
Screenshot 2
running in Powershell for long time
Upvotes: 1
Views: 917
Reputation: 5506
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]
Upvotes: 2