Alex Wang
Alex Wang

Reputation: 113

cannot delete virtual cluster from azure portal ,it takes long time but still exists

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

enter image description here

Screenshot 2 running in Powershell for long time enter image description here

Upvotes: 1

Views: 917

Answers (1)

VenkateshDodda
VenkateshDodda

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

Related Questions