0

I have difficulties to match meterID (GUID) from rateCARD API response and meterID from UsageAggregation API response. I even looked at this Table ( azure.microsoft.com/de-de/support/guid-migration/) but this doesn't help either. The meterID from UsageAggregatio API response matches with old GUID, but neither the old GUID nor the new one doesn’t match with the id in rateCARD API response. This is my request queries.

management.azure.com/subscriptions/{SubID} /providers/Microsoft.Commerce/UsageAggregates?api-version=2015-06-01-preview&reportedstartTime=2016-05-22+00%3a00%3a00Z&reportedEndTime=2016-05-23+00%3a00%3a00Z&aggregationGranularity=Daily&showDetails=true

management.azure.com/subscriptions/{SubID} /providers/Microsoft.Commerce/RateCard?api-version=2015-06-01-preview&$filter=OfferDurableId%20eq%20'MS-AZR-0025P'%20and%20Currency%20eq%20'EUR'%20and%20Locale%20eq%20'de-DE'%20and%20RegionInfo%20eq%20'DE'

Can anyone help me on this please?

UPDATE

Here is an example of such response. I get usage aggregations with meter id from UsageAggregation API.

"id": "/subscriptions/ /providers/Microsoft.Commerce/UsageAggregates/Daily_BRSDT_20160520_0000",
      "name": "Daily_BRSDT_20160520_0000",
      "type": "Microsoft.Commerce/UsageAggregate",
      "properties": {
        "subscriptionId": "5948833b-863b-4fde-9059-e0c93523da27",
        "usageStartTime": "2016-05-23T00:00:00+00:00",
        "usageEndTime": "2016-05-24T00:00:00+00:00",
        "meterName": "Compute Hours",
        "meterRegion": "EU North",
        "meterCategory": "Virtual Machines",
        "meterSubCategory": "BASIC.A2 VM (Windows)",
        "unit": "Hours",
        "instanceData": "{\"Microsoft.Resources\":{\"resourceUri\":\"/subscriptions/
        "meterId": "782591e9-abf5-4c5b-b764-aaf746e71e85",
        "infoFields": {},
        "quantity": 1.600012
      } 

I didn’t get exact entry for this resource from RateCard API, this is the nearest resource I could find. The entry for resource listed in UsageAggregation API response doesn’t exist in RateCard API response.

"MeterId": "5261a49e-27cc-4b42-b264-15e332882525",
      "MeterName": "Computestunden",
      "MeterCategory": "Virtual Machines",
      "MeterSubCategory": "VM BASIC.A2 (Windows)",
      "Unit": "Stunden",
      "MeterTags": [],
      "MeterRegion": "Brasilien, Süden",
      "MeterRates": {
        "0": 0.1501074

UPDATE 25.05.2016 Offer ID screenshot

Anton Heck
  • 1
  • 1
  • 4
  • Can you update your question with mismatched ids? I have seen this happen a number of times where meter id returned by usage API is nowhere to be found in the data returned by rate card API. – Gaurav Mantri May 24 '16 at 08:21
  • Hello, thank you for your response. – Anton Heck May 24 '16 at 09:29
  • So I ran the same query against my Azure Subscription and I was able to see that meter id. Here's the response I got (at least part of it): http://pastebin.com/1n8J0Xqz – Gaurav Mantri May 24 '16 at 14:58
  • The result looks good, exactly like I was hoping to get. Do you have any idea why I don’t get complete rate card? – Anton Heck May 25 '16 at 07:37
  • Honestly, I have no idea :). Will it be possible for you to copy the entire response somewhere (may be on pastebin.com) and I can take a look? – Gaurav Mantri May 25 '16 at 07:38
  • Please. http://pastebin.com/uyxGWQ4V – Anton Heck May 25 '16 at 07:59
  • Thanks for sharing. Interesting! I don't see that meter either. Can you check the Offer ID for your Subscription? Is it `MS-AZR-0025P`? – Gaurav Mantri May 25 '16 at 08:21
  • Yes it is MS-AZR-0025P, check the screenshot in the post update. – Anton Heck May 25 '16 at 08:53
  • I am inclined to think that it's a bug with the Usage API. As I mentioned in my 1st comment, I have seen this kind of thing with my subscription as well where no information found in rate card about meters reported in the usage. – Gaurav Mantri May 25 '16 at 09:18

1 Answers1

0

I tried running exact same project on azure VM and it works just fine. Apparently this issue is caused by infrastructure.

Anton Heck
  • 1
  • 1
  • 4