Skip to content

Put Diagnostics Setting as a Separate Resource under a Resource Group #22615

@byteknacker

Description

@byteknacker

Description
This is not a direct part of Azure CLI but since I cannot find the repository for Azure Portal or Azure Platform itself, I will post the feature request here to get redirected to the right team.

Motivation
I am deploying Azure infrastructure using Terraform. Currently, diagnostics settings are managed outside of resource groups. It is hard to find and go to the correct diagnostics setting since you have to click through lots of blades. When I manually delete everything in my subscription, all the resource groups that is, the diagnostics settings are still there. But I cannot see them directly. I have to go to the Diagnostics Settings page and set the correct filters to see the remaining but undesired diagnostics settings. When I do another Terraform apply, it errors out and tells me that there is already a diagnostics setting that exists with the same name.

Possible Solutions

  1. Whenever you delete a resource, all and any of the associated diagnostics settings of that particular resource will be force deleted.
  2. Put diagnostics settings as a separate resource that has to be put under a resource group. That way, whenever I delete the resource group, it also deletes the unneeded diagnostics settings.

References:

hashicorp/terraform-provider-azurerm#6389
hashicorp/terraform-provider-azurerm#15734
hashicorp/terraform-provider-azurerm#8930
hashicorp/terraform-provider-azurerm#7114

Metadata

Metadata

Assignees

No one assigned

    Labels

    Monitoraz monitorService AttentionThis issue is responsible by Azure service team.act-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions