The resource api version is unavailable, how to delete resource

Xia Wang 0 Reputation points Microsoft Employee
2024-12-12T02:14:41.1+00:00

the service corresponding to the resource located under sub has been taken offline or the API version is unavailable, which makes it impossible to delete this resource. How to delete the reources in portal?

8d51c998-5930-4f95-9822-d65a358cc5bd

The VM network and other resources corresponding to this resource have been deleted. Currently, only this resource needs to be deleted. I want to see if you can complete this operation on your end.

Azure HDInsight
Azure HDInsight
An Azure managed cluster service for open-source analytics.
217 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ganesh Gurram 3,025 Reputation points Microsoft Vendor
    2024-12-12T19:49:03.3+00:00

    Hi @Xia Wang

    Thanks for the question and using MS Q&A platform.

    You can use Azure PowerShell or Azure CLI commands to attempt deletion, which might bypass some UI restrictions.

    Azure CLI:

    az resource delete \ --resource-group ExampleResourceGroup \ --name ExampleVM \ --resource-type "Microsoft.Compute/virtualMachines"
    

    Azure Powershell:

    Remove-AzResource ` -ResourceGroupName ExampleResourceGroup ` -ResourceName ExampleVM ` -ResourceType Microsoft.Compute/virtualMachines
    
    

    Reference: Delete resource

    Hope this helps. Do let us know if you have any queries.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.