# Lackluster azure.resource.type data in billing metricset

**URL:** <https://discuss.elastic.co/t/lackluster-azure-resource-type-data-in-billing-metricset/373886>\
**Category:** Beats\
**Tags:** beats-module, metricbeat\
**Created:** [January 30, 2025, 11:03am UTC](https://discuss.elastic.co/t/lackluster-azure-resource-type-data-in-billing-metricset/373886 "2025-01-30T11:03:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![janb](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@janb](https://discuss.elastic.co/u/janb)\
**Post date:** [January 30, 2025, 11:03am UTC](https://discuss.elastic.co/t/lackluster-azure-resource-type-data-in-billing-metricset/373886/1 "2025-01-30T11:03:19Z")

</div>

Hi,

we've introduced azure billing metricset into our metricbeat (8.15.2 version) configuration, and I've noticed that azure.resource.type is a little lackluster.

```auto
Microsoft.Compute

microsoft.compute

Microsoft.Storage

microsoft.network

Microsoft.EventHub

Virtual Network

Microsoft.RecoveryServices

Microsoft.Cache

Microsoft.KeyVault

MICROSOFT.LOGIC

Other

```

Lackluster in a sense that it's missing the actual resource type this data came from, i.e. Microsoft.Compute/ **virtualMachines** or Microsoft.Compute/ **disks**. So the actual part after the /.

```json
    "azure": {
      "subscription_id": "",
      "subscription_name": "",
      "resource": {
        "type": "Microsoft.Compute",
        "group": "",
        "tags": {
          ...
        },
        "name": ""
      },
      "billing": {
        ...
      }
    }

```

On a different machine, where we're using the **monitor** metricset - granted those resources are defined, we see the actual resource type from which the data came from.

```json
    "azure": {
      "subscription_id": "",
      "timegrain": "PT1M",
      "resource": {
        "name": "",
        "id": "",
        "type": "Microsoft.Cache/Redis",
        "tags": {
          "environment": ""
        },
        "group": ""
      },
      "namespace": "Microsoft.Cache/redis",
      "metrics": {
       ...
      }
    }

```

Billing azure.yml configuration:

```yml
- module: azure
  metricsets:
  - billing
  enabled: true
  period: 24h
  client_id: ''
  client_secret: ''
  tenant_id: ''
  subscription_id: ''
  refresh_list_interval: 600s

```

Monitor azure.yml configuration:

```yml
- module: azure
  metricsets:
  - monitor
  enabled: true
  period: 300s
  client_id: 
  client_secret: 
  tenant_id: 
  subscription_id: 
  refresh_list_interval: 10s
  resources:
  - resource_group: 
    resource_type: "Microsoft.Compute/virtualMachines"
    metrics:
    - name: "CPU Credits Remaining"
      namespace: "Microsoft.Compute/virtualMachines"
  - resource_group:
    resource_type: "Microsoft.Cache/redis"
    metrics:
    - name: "*"
      namespace: "Microsoft.Cache/redis"

```

I couldn't find anywhere online if this is expected output. I however do understand that billing is in a beta phase, so if this is a bug, it seems fair to report it as such.

BR,  
janb
