Azure Maps API usage

psj 160 Reputation points
2023-09-28T01:44:21.6566667+00:00

Hi, I create some instances in same resource group, and I delete one instance. How can I get the Azure Maps API usage information about the deleted instance? Can I find the all usage in my account? I just find the usage of a specified instance.

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
723 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 57,491 Reputation points
    2023-09-28T01:54:55.0166667+00:00

    Hi psj,

    Please see the answer below:

    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

    Cited from https://learn.microsoft.com/en-us/answers/questions/872568/how-to-find-usage-details-of-deleted-azure-resourc


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.