# Azure DevOps pipeline failure due to terraform cos DB configuration change

**URL:** <https://discuss.hashicorp.com/t/azure-devops-pipeline-failure-due-to-terraform-cos-db-configuration-change/69123>\
**Category:** Terraform\
**Created:** [August 7, 2024, 10:14pm UTC](https://discuss.hashicorp.com/t/azure-devops-pipeline-failure-due-to-terraform-cos-db-configuration-change/69123 "2024-08-07T22:14:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![niran.premadasa](https://avatars.discourse-cdn.com/v4/letter/n/ba9def/32.png) [@niran.premadasa](https://discuss.hashicorp.com/u/niran.premadasa)\
**Post date:** [August 7, 2024, 10:14pm UTC](https://discuss.hashicorp.com/t/azure-devops-pipeline-failure-due-to-terraform-cos-db-configuration-change/69123/1 "2024-08-07T22:14:18Z")

</div>

Have anyone experience this issue,

Failure responding to request: StatusCode=400 – Original Error: autorest/azure: Service returned an error. Status=400 Code=“BadRequest” Message=“Metric category ‘Requests’ is not supported, supported categories are: ‘AllMetrics’.”

We have usemRequests in metric category for 2 years , all of sudden got this pipeline error due to this terraform configurations, any update recently?

---

<div class="post-metadata">

**Author:** ![brandonavant](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/brandonavant/32/42616_2.png) [@brandonavant](https://discuss.hashicorp.com/u/brandonavant)\
**Post date:** [August 15, 2024, 8:28pm UTC](https://discuss.hashicorp.com/t/azure-devops-pipeline-failure-due-to-terraform-cos-db-configuration-change/69123/2 "2024-08-15T20:28:24Z")

</div>

I ran across this problem. It was working fine until one day I ran my ADO pipeline and it threw the error you mentioned.

To resolve it, I needed to change the Diagnostic Setting resource definition from this:

```hcl
metric {
	category = "Requests"
	enabled = false
}

```

To this:

```hcl
metric {
	category = "AllMetrics"
	enabled = false
}

```

This will fix your problem.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/hashicorp/original/1X/79bf76adfd92a75631996933098f9ce29d37abf3.svg) [@system](https://discuss.hashicorp.com/u/system)\
**Post date:** [February 11, 2025, 8:28pm UTC](https://discuss.hashicorp.com/t/azure-devops-pipeline-failure-due-to-terraform-cos-db-configuration-change/69123/3 "2025-02-11T20:28:37Z")

</div>

Closed on February 11, 2025, 8:28pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
