# Error deploying app-detection-rule using Monaco?

**URL:** <https://community.dynatrace.com/t/error-deploying-app-detection-rule-using-monaco/31034>\
**Category:** Cloud platforms\
**Tags:** azure, monaco\
**Created:** [April 6, 2021, 1:07pm UTC](https://community.dynatrace.com/t/error-deploying-app-detection-rule-using-monaco/31034 "2021-04-06T13:07:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nakb](https://avatars.discourse-cdn.com/v4/letter/n/8edcca/32.png) [@nakb](https://community.dynatrace.com/u/nakb)\
**Post date:** [April 6, 2021, 1:07pm UTC](https://community.dynatrace.com/t/error-deploying-app-detection-rule-using-monaco/31034/1 "2021-04-06T13:07:16Z")

</div>

I am trying to deploy&nbsp; **app-detection-rule** configuration using Monaco via Azure DevOps pipeline, but getting below error.

_**ERROR Deployment to Dev failed with error Failed to upsert DT object My Application (HTTP 400)!  
Response was: {“error”:{“code”:400,“message”:“Constraints violated.”,“constraintViolations”:[{“path”:“”,“message”:“Given application detection rule duplicates rule 61a000cd-b4b2-49e1-6c000fa507fa”,“parameterLocation”:“PAYLOAD\_BODY”,“location”:null}]}}, responsible config: Common/app-detection-rule/myrule.json**_

It should update the existing configuration?

---

<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:** [June 17, 2021, 9:52pm UTC](https://community.dynatrace.com/t/error-deploying-app-detection-rule-using-monaco/31034/2 "2021-06-17T21:52:13Z")

</div>

it appears that you have duplicate rules. This happens if there is an application with the same rule present. For example, I have an application called “EasyTravel” that is defined as URL Begins with: Easytravel.

But if I create another rule for a new application called EasyTravel1 and define it with&nbsp;URL Begins with: Easytravel. it will error out as the values are the same and there is a conflict.

---

<div class="post-metadata">

**Author:** ![nakb](https://avatars.discourse-cdn.com/v4/letter/n/8edcca/32.png) [@nakb](https://community.dynatrace.com/u/nakb)\
**Post date:** [July 9, 2021, 8:34am UTC](https://community.dynatrace.com/t/error-deploying-app-detection-rule-using-monaco/31034/3 "2021-07-09T08:34:47Z")

</div>

Hi @Chad I am using monaco so once I deploy the rule than every time i need to either remove the configuration from repository or need to add skip deployment tag

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [July 9, 2021, 8:45am UTC](https://community.dynatrace.com/t/error-deploying-app-detection-rule-using-monaco/31034/4 "2021-07-09T08:45:22Z")

</div>

Please add the name entry to the JSON payload. Rules are matched based on the name property. It’s working for me with monaco 1.5.3

I use following templates with MoNaCo:

```markup
{
    "name": "{{ .name }}",
    "applicationIdentifier": "{{ .applicationId }}",
    "filterConfig": {
        "applicationMatchTarget": "DOMAIN",
        "applicationMatchType": "MATCHES",
        "pattern": "{{ .domain }}"
    },
    "metadata": {
        "clusterVersion": "1.208.119.20210122-122432",
        "configurationVersions": [
            0
        ]
    }
}

```

---

<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:** [December 4, 2023, 8:52am UTC](https://community.dynatrace.com/t/error-deploying-app-detection-rule-using-monaco/31034/5 "2023-12-04T08:52:42Z")

</div>

Hi,

You can use [Live chat function](https://docs.dynatrace.com/docs/shortlink/troubleshoot-chat-issues) when you are logged in your Dynatrace tenant.

Best regards
