resource deleted but resource entry still exist

Elisha George 151 Reputation points
2022-01-03T05:27:45.647+00:00

I was performing a Lab for VMSS and created all the required resources in Azure. In the end, deleted all resources through the Azure portal. Once after refreshing the page, I could see these entries appearing there. I have visited this entire one by one but it says " Resource not found". My understanding is that these resources are deleted but entries are just appearing against my subscription.
I have tried to recreate these VMSS with the same specifications and try to delete them individually but still, these entries exist there under my subscription. Even I have deleted all my resource groups where this VMSS was first created but these entries are still appearing under my subscription.

Azure VMware Solution
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
351 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 26,301 Reputation points
    2022-01-03T07:26:37.863+00:00

    @Elisha George

    As per your question, you have created a VMSS in your subscription, and after your Lab you have deleted the VMSS resources. However you are still seeing the resources in azure portal when you refresh.

    Try to logoff and login to Azure Portal and see if you still see the resources. Try from a different browser.

    If the deleted operation was successful, then all the relevant resources will be deleted.
    Requesting to check the activity logs for the delete operation to see if you have any errors in delete operation.

    Also, try to delete the VMSS using below CLI commands:

    Deletion of the entire VMSS: for deletion of the entire VMSS

    Remove-AzVmss -ResourceGroupName <RG name> -VMScaleSetName <VMSS name> -Force  
    

    Deletion of an instance: for deletion of an instance in the VMSS

    Remove-AzVmss -ResourceGroupName <RG name> -VMScaleSetName <VMSS name> -InstanceId "<instance number>"  
    

    If VMSS is in failed state:
    More often than not the VMSS would be in a failed state after a failed DELETE operation on an instance. To get the VMSS back in a converged state, you would also need to run an update command to refresh the VMSS status: update the VMSS

    Update-AzVmss -ResourceGroupName <RG name> -VMScaleSetName <VMSS name>  
    

    Here is a reference document for VMSS.

    Hope this helps.
    If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.

    2 people found this answer helpful.

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.