How to find usage details of deleted azure resources

Ajin Martin-FT 1 Reputation point
2022-06-01T06:44:40.787+00:00

How can I get usage details such as created date, usage end date ..etc of deleted Azure resources
I have tried using Azure Usage API. But I couldn't find the deleted date through it.

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,285 questions
Azure ISV (Independent Software Vendors) and Startups
Azure ISV (Independent Software Vendors) and Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.ISV (Independent Software Vendors) and Startups: A Microsoft program that helps customers adopt Microsoft Cloud solutions and drive user adoption.
91 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,236 Reputation points
    2022-06-01T10:34:06.267+00:00

    Hi @Ajin Martin-FT ,

    Welcome to Microsoft Q&A! Thanks for posting the question.

    I understand that you'd like to get details of Azure Resources (like creation date, deletion date) as well as the cost they have incurred and that these resources could also have already been deleted. This information can be obtained by combining details from 2 different sources:

    1. Usage details - You can get this detail by using the "Cost Analysis (preview)" experience of Cost Management. To access it, please go to "Cost Management + Billing" in Azure Portal --> Cost Management --> ensure that the correct subscription is selected here --> "Cost analysis (preview)"
    Here you can select "Resources" --> select the time range over which you would like to get the details of billing. This would show you the details of cost associated with all resources - present/deleted from that time range.

    2. Resource Creation/Deletion Date - This will be obtained from Azure Activity log. By default, Activity log events are retained in Azure for 90 days and then deleted. Therefore, you will be able to get the details from the last 90 days from Azure Activity Log. You may extend this retention by enabling Diagnostic Settings and storing these events in Azure Monitor Logs/Azure Storage. For more details, please refer to: Diagnostic settings in Azure Activity logs.

    Once you have identified the resource for which you would like to get this detail, in Azure portal, go to "Azure Monitor" --> "Activity Log" --> select the time range.
    Ensure that you have the "Resource" column selected by using the "Edit columns" as shown below. This would show you details of when the resource was created and deleted. (Note that the creation event of resource is recorded as Create/update, hence you might see either or both of them used as "Operation Name"). The following snippet from activity log shows one of the deleted resources from my subscription.

    207463-image.png

    Hope it helps. Please let me know if you have any questions.

    ---
    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.