# Merge Azure App Service Slots into same service

**URL:** <https://community.dynatrace.com/t/merge-azure-app-service-slots-into-same-service/41794>\
**Category:** Cloud platforms\
**Tags:** azure\
**Created:** [September 27, 2023, 10:53am UTC](https://community.dynatrace.com/t/merge-azure-app-service-slots-into-same-service/41794 "2023-09-27T10:53:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafaelmiranda](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@rafaelmiranda](https://community.dynatrace.com/u/rafaelmiranda)\
**Post date:** [September 27, 2023, 10:53am UTC](https://community.dynatrace.com/t/merge-azure-app-service-slots-into-same-service/41794/1 "2023-09-27T10:53:26Z")

</div>

Hi,

I’m integrating Dynatrace with Azure App Service and works ok except when I have multiple service slots.  
I have an app **MyApp** and each slot have different application ids and consequently are being shown as different services:

- MyApp

- myapp\_\_b123

I’m using [service detection rules](https://www.dynatrace.com/support/help/platform-modules/applications-and-microservices/services/service-detection-and-naming/customize-service-detection) to improve detection and I’m able to remove the suffix:

```auto
"applicationId": {
    "enableIdContributor": true,
    "serviceIdContributor": {
        "contributionType": "TransformValue",
        "transformations": [
            {
                "transformationType": "SPLIT_SELECT",
                "splitDelimiter": "__",
                "selectIndex": 1
            }
        ]
    }
},

```

But I’m still struggling with the casing. I wish I could use a case insensitive rule or at least override the ApplicationId with a environment variable.

I tried using DT\_APPLICATIONID but apparently it only works when the service does not have an existing application id.

---

<div class="post-metadata">

**Author:** ![izabelarokita](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/izabelarokita/32/41812_2.png) [@izabelarokita](https://community.dynatrace.com/u/izabelarokita)\
**Post date:** [February 14, 2024, 12:47pm UTC](https://community.dynatrace.com/t/merge-azure-app-service-slots-into-same-service/41794/2 "2024-02-14T12:47:06Z")

</div>

Hey&nbsp;[@rafaelmiranda](https://community.dynatrace.com/user/59288)&nbsp;  
Are you still facing this issue, or have you found a solution already?  
Let me know so we can discuss the next steps 🙂

---

<div class="post-metadata">

**Author:** ![NeJoyerPB](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@NeJoyerPB](https://community.dynatrace.com/u/NeJoyerPB)\
**Post date:** [November 1, 2024, 5:25pm UTC](https://community.dynatrace.com/t/merge-azure-app-service-slots-into-same-service/41794/3 "2024-11-01T17:25:39Z")

</div>

Did you figure out a solution?

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [November 13, 2024, 11:06am UTC](https://community.dynatrace.com/t/merge-azure-app-service-slots-into-same-service/41794/4 "2024-11-13T11:06:16Z")

</div>

Hello&nbsp;[@rafaelmiranda](https://community.dynatrace.com/user/59288)

- Previously, there was a capability for services merging.
- As of now, You can proceed with external web services rules and external web request rules configurations as per the available conditions it should fix.

Hoping it helps.

BR,

Peter

---

<div class="post-metadata">

**Author:** ![NeJoyerPB](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@NeJoyerPB](https://community.dynatrace.com/u/NeJoyerPB)\
**Post date:** [November 18, 2024, 4:26pm UTC](https://community.dynatrace.com/t/merge-azure-app-service-slots-into-same-service/41794/5 "2024-11-18T16:26:05Z")

</div>

I found that I was able to combine the two services (one for my production slot and one for my “vNext” slot) into one service that includes the traces, metrics for both slots.

I did this by creating a web service detection rule that overrides the service name to be my service name (in your example “myapp”).  
Then I created an Advanced Process Detection rule which does something similar by truncating the name of the process (using the “Delimit To” option). That was sufficient for getting the services to be combined.

For bonus points then, I set a “[DT\_RELEASE\_STAGE](https://docs.dynatrace.com/docs/deliver/release-monitoring/version-detection-strategies)” environment variable to “Prod” for the prod slot and “VNEXT” for my vnext slot. I made those settings sticky so that they stick to the slot and don’t get swapped when the slots are swapped.  
This gives you the ability to break out the data in the Dynatrace UI between the slots (even though they are combined into one service).
