cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Azure entities missing Resource Group name property

cv_dewr
Helper

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.  While most are.  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 .

 

 

{
  "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 /api/v2/entities?entitySelector=type(AZURE_SQL_ELASTIC_POOL)&fields=+properties,+fromRelationships,+toRelationships .

 

 

   {
      "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.

 

 

    {
      "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.

 

 

   {
      "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. cloud:azure:eventgrid:topics reports the resource group name, as the properties/customProperties/Resource group key/value. e.g. partial response from API api/v2/entities?entitySelector=type(cloud:azure:eventgrid:topics)&fields=+properties,+fromRelationships,+toRelationships

 

 

 {
      "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.

2 REPLIES 2

ChadTurner
DynaMight Legend
DynaMight Legend

@cv_dewr are you still experiencing this issue? 

-Chad

cv_dewr
Helper

Hi @ChadTurner as of 1.282 it seems the list of affected entities is down to only.

  • AZURE_EVENT_HUB 
  • AZURE_SERVICE_BUS_NAMESPACE

 

Featured Posts