28 Jul 2023 04:45 AM - last edited on 28 Jul 2023 12:41 PM by Karolina_Linda
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.
{
"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"
},
{
"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. cloudeventgrid: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(cloudeventgrid:topics)&fields=+properties,+fromRelationships,+toRelationships
{
"entityId": "CUSTOM_DEVICE-7BB76EA1191AA6DD",
"type": "cloudeventgrid: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.
Solved! Go to Solution.
12 Feb 2024 07:18 PM
@cv_dewr are you still experiencing this issue?
13 Feb 2024 12:31 AM
Hi @ChadTurner as of 1.282 it seems the list of affected entities is down to only.