Giter Site home page Giter Site logo

"Enable allLogs category group resource logging for supported resources to Log Analytics" creates duplicate logs for Application Insights already using a Log Analytics Workspace about terraform-azurerm-caf-enterprise-scale HOT 4 OPEN

djbark avatar djbark commented on July 27, 2024 1
"Enable allLogs category group resource logging for supported resources to Log Analytics" creates duplicate logs for Application Insights already using a Log Analytics Workspace

from terraform-azurerm-caf-enterprise-scale.

Comments (4)

diegosrp avatar diegosrp commented on July 27, 2024

Hi djbark, I looked at the documentation for the azurerm_application_insights resource and the workspace_id is optional (I didn't do any testing, but I believe you can comment on this parameter and see how the plan behaves).

Or if you want to control it through the resource, I believe another option is to add an exemption to this policy/resource and remove the setbypolicy that it will not create again.

from terraform-azurerm-caf-enterprise-scale.

djbark avatar djbark commented on July 27, 2024

@diegosrp It is optional, but once added it cannot be removed (at least not without deleting and re-creating the resource). Furthermore my understanding is that the recommendation is to migrate to workspace-based Application Insights resources so would seem a backwards step.

I would rather not do exemptions to individual policies that are part of an initiative provided as part of the CAF, but maybe that is the only option.

from terraform-azurerm-caf-enterprise-scale.

diegosrp avatar diegosrp commented on July 27, 2024

I understood.

In my view, I see CAF as the best practices/recommendations, however it is not suitable for all businesses, sometimes we have a compliance requirement or something that will not meet our needs and we need to adjust.

Regarding exemption, you can put it in the specific resource_id, meaning it will not only apply to the specific resource.

from terraform-azurerm-caf-enterprise-scale.

diegosrp avatar diegosrp commented on July 27, 2024

Screenshot 2024-07-18 at 11 36 29

from terraform-azurerm-caf-enterprise-scale.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.