# Azure entities missing Resource Group name property

**URL:** <https://community.dynatrace.com/t/azure-entities-missing-resource-group-name-property/40911>\
**Category:** Cloud platforms\
**Tags:** azure, dynatrace-api\
**Created:** [July 28, 2023, 3:45am UTC](https://community.dynatrace.com/t/azure-entities-missing-resource-group-name-property/40911 "2023-07-28T03:45:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cv\_dewr](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@cv\_dewr](https://community.dynatrace.com/u/cv_dewr)\
**Post date:** [July 28, 2023, 3:45am UTC](https://community.dynatrace.com/t/azure-entities-missing-resource-group-name-property/40911/1 "2023-07-28T03:45:52Z")

</div>

While working on a script dealing with Azure entities we’ve collected in Dynatrace, I’ve found many entities are NOT getting their Resource Group property filled.&nbsp; While most are.&nbsp; This is causing me some troubles as I need the resource group name to determine ownership info for the entities.

The entity types I’m not seeing Resource group names for are.

- AZURE\_EVENT\_HUB
- AZURE\_SERVICE\_BUS\_NAMESPACE
- AZURE\_SQL\_DATABASE
- AZURE\_SQL\_ELASTIC\_POOL
- AZURE\_SQL\_SERVER
- AZURE\_WEB\_APP

Looking at the entity schema for each of those types, the property **azureResourceGroupName** should be present. e.g. partial response from an API call to **api/v2/entityTypes/AZURE\_SQL\_ELASTIC\_POOL**.

```markup
{
  "type": "AZURE_SQL_ELASTIC_POOL",
  "displayName": "Azure SQL Elastic Pool",
  "dimensionKey": "dt.entity.azure_sql_elastic_pool",
  "entityLimitExceeded": false,
  "properties": [
    {
      "id": "awsNameTag",
      "type": "String",
      "displayName": "awsNameTag"
    },
    {
      "id": "azureResourceGroupName",
      "type": "String",
      "displayName": "azureResourceGroupName"
    },
    {
      "id": "azureSqlElasticPoolDatabaseMaxCapacity",
      "type": "Number",
      "displayName": "azureSqlElasticPoolDatabaseMaxCapacity"
    },

```

When I query for an actual entity, the response does not show the expected properties.  
partial response from an API call to&nbsp;**/api/v2/entities?entitySelector=type(AZURE\_SQL\_ELASTIC\_POOL)&fields=+properties,+fromRelationships,+toRelationships**.

```markup
{
      "entityId": "AZURE_SQL_ELASTIC_POOL-1B9ABA261E635612",
      "type": "AZURE_SQL_ELASTIC_POOL",
      "displayName": "xxxx",
      "properties": {
        "detectedName": "xxxx",
        "azureSqlElasticPoolStorageLimitMb": 0,
        "azureSqlElasticPoolDatabaseMaxCapacity": 6,
        "azureSqlElasticPoolTier": "GeneralPurpose",
        "azureSqlElasticPoolDatabaseMinCapacity": 0,
        "azureSqlElasticPoolDtu": 6
      },

```

AZURE\_FUNCTION\_APP entities are getting the azureResourceGroupName value filled. e.g.

```markup
{
      "entityId": "AZURE_FUNCTION_APP-04FB38D380253D30",
      "type": "AZURE_FUNCTION_APP",
      "displayName": "xxxx",
      "properties": {
        "detectedName": "xxxx",
        "azureResourceId": "/subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.Web/sites/xxxx",
        "azureResourceGroupName": "xxxx",
        "azureFunctionLanguage": "dotnet-isolated",
        "dnsNames": [
          "xxxx.azurewebsites.net"
        ],
        "sku": "ElasticPremium"
      },
      "fromRelationships": {

```

an equivalent WEB app in the same resource group gets nothing.

```markup
{
      "entityId": "AZURE_WEB_APP-1D9BC13722E32A08",
      "type": "AZURE_WEB_APP",
      "displayName": "xxxx",
      "properties": {
        "detectedName": "xxxx"
      },
      "fromRelationships": {

```

all the new style entities CUSTOM\_DEVICE based, e.g.&nbsp;cloud:azure:eventgrid:topics reports the resource group name, as the properties/customProperties/Resource group key/value. e.g. partial response from API&nbsp;**api/v2/entities?entitySelector=type(cloud:azure:eventgrid:topics)&fields=+properties,+fromRelationships,+toRelationships**

```markup
{
      "entityId": "CUSTOM_DEVICE-7BB76EA1191AA6DD",
      "type": "cloud‌‌eventgrid:topics",
      "displayName": "xxxx",
      "properties": {
        "detectedName": "xxxx",
        "customProperties": [
          {
            "value": "https://xxxx/api/events",
            "key": "Topic endpoint"
          },
          {
            "value": "/subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.EventGrid/topics/xxxx",
            "key": "Resource ID"
          },
          {
            "value": "xxxx",
            "key": "Resource name"
          },
          {
            "value": "Australia Central",
            "key": "Region"
          },
          {
            "value": "xxxx",
            "key": "Subscription"
          },
          {
            "value": "Succeeded",
            "key": "Provisioning state"
          },
          {
            "value": "xxxx",
            "key": "Resource group"
          }
        ],

```

It’s proving impossible to accomplish what I need to do with the missing data, the inconsistent locations of the data I can code around.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [February 12, 2024, 7:18pm UTC](https://community.dynatrace.com/t/azure-entities-missing-resource-group-name-property/40911/2 "2024-02-12T19:18:27Z")

</div>

[@cv\_dewr](https://community.dynatrace.com/user/48601)&nbsp;are you still experiencing this issue?

---

<div class="post-metadata">

**Author:** ![cv\_dewr](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@cv\_dewr](https://community.dynatrace.com/u/cv_dewr)\
**Post date:** [February 13, 2024, 12:31am UTC](https://community.dynatrace.com/t/azure-entities-missing-resource-group-name-property/40911/3 "2024-02-13T00:31:15Z")

</div>

Hi&nbsp;[@ChadTurner](https://community.dynatrace.com/user/14877)&nbsp;as of 1.282 it seems the list of affected entities is down to only.

- AZURE\_EVENT\_HUB
- AZURE\_SERVICE\_BUS\_NAMESPACE
