Azure 'list_resources' Method Lists Deleted Managed Disk RRS feed

  • Question

  • Even after a managed disk is deleted from the resource group in Azure, if you call the list_resources to list the remaining resources in that resource group, the managed disk still shows up even if you have deletion confirmation notification visible in the Activity Logs on Azure Portal.

    It is visible for up to 2 minutes after delete has been called on it.

    Does anyone know why the list_resources method still ends up listing it?
    Because if you try calling get on the managed disk, it will return you an exception saying that the disk was not found, yet it still shows up in the list.
    I am using Azure SDK for Ruby Gem v0.9.0.

    • Edited by Maham Nazir Friday, November 30, 2018 5:02 AM
    Friday, November 30, 2018 5:01 AM

All replies

  • @Maham, there are delays that are expected when deleting a resource, due to several dependencies, from Portal, and other tools. Once a resource has been "Marked for deletion", it should no longer be usable, and might take a few minutes before it's deleted from all requests(Rest APIs, Portal, PS etc..), you won't be charged for anything after it being reserved for deletion. let me know if this helps.
    Monday, December 3, 2018 5:14 PM