# Using Monaco: Handling Rule Reordering in Configurations

**URL:** <https://community.dynatrace.com/t/using-monaco-handling-rule-reordering-in-configurations/48035>\
**Category:** Open Q&A\
**Tags:** application-rules, naming-rules, monaco\
**Created:** [September 30, 2024, 6:42am UTC](https://community.dynatrace.com/t/using-monaco-handling-rule-reordering-in-configurations/48035 "2024-09-30T06:42:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anaidu](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anaidu](https://community.dynatrace.com/u/anaidu)\
**Post date:** [September 30, 2024, 6:42am UTC](https://community.dynatrace.com/t/using-monaco-handling-rule-reordering-in-configurations/48035/1 "2024-09-30T06:42:56Z")

</div>

Hi Team,

Hope you’re doing well!

Monaco is effective and efficient for transferring or updating configurations. However, when it comes to configurations that require a specific rule order, such as Application Detection Rules / Service Detection Rules,&nbsp; etc, be cautious. Monaco may deploy the rules in a random order rather than the one you originally set (e.g., placing rules a, b, c, and d out of sequence). I’m not sure if this issue has been addressed in the latest versions of Monaco or if it’s still being worked on. Since the order of these rules is crucial for proper configuration, if anyone has encountered this and found a workaround, your suggestions would be appreciated.

Regards,

Ajay Naidu

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [September 30, 2024, 9:53am UTC](https://community.dynatrace.com/t/using-monaco-handling-rule-reordering-in-configurations/48035/2 "2024-09-30T09:53:50Z")

</div>

Hi,

Have you try&nbsp;[InsertAfter parameter](https://docs.dynatrace.com/docs/shortlink/configuration-as-code-yaml-configuration#type-setting)?

 ![AntonPineiro_0-1727690021318.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/f/bffccf5634ce9a08d94afe4b8dcae5040c8bf362.png)

Best regards

---

<div class="post-metadata">

**Author:** ![anaidu](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anaidu](https://community.dynatrace.com/u/anaidu)\
**Post date:** [September 30, 2024, 10:06am UTC](https://community.dynatrace.com/t/using-monaco-handling-rule-reordering-in-configurations/48035/3 "2024-09-30T10:06:10Z")

</div>

Hi [@AntonPineiro](https://community.dynatrace.com/user/58682) ,

We haven’t tried this but even if we had to try this it would take time for following reason:-

1. When we have more than 30-40 rules in application detection, it would be complex to identify the config IDs and change the yaml.

What we instead did is to manually rearrange the rules on UI once onboarded as that was easy and not time consuming. Even with SaaS Upgrade this was the scenario.

Regards,

Ajay

---

<div class="post-metadata">

**Author:** ![agonzalez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agonzalez/32/8558_2.png) [@agonzalez](https://community.dynatrace.com/u/agonzalez)\
**Post date:** [November 7, 2024, 3:51pm UTC](https://community.dynatrace.com/t/using-monaco-handling-rule-reordering-in-configurations/48035/4 "2024-11-07T15:51:25Z")

</div>

I found the following documentation: [Ensure order of configurations — Dynatrace Docs](https://docs.dynatrace.com/docs/manage/configuration-as-code/monaco/guides/order-of-configurations)

It seems that you can set an order rule.
