Giter VIP home page Giter VIP logo

Comments (5)

alex-frankel avatar alex-frankel commented on June 20, 2024 1

You can get the actual JSON of any built-in (or custom) initiative definition by doing the following:
az policy set-definition show -n "cf25b9c1-bd23-4eb6-bd2c-f4f3ac644a5f" > policy-set.json

somewhat confusingly an initiative in the portal is called a policy-set in our backend.

Glad you were able to get this working.

from azure-blueprints.

alex-frankel avatar alex-frankel commented on June 20, 2024

The error you are getting is saying the policy initiative does not have a parameter called logAnalyticsWorkspaceId. I looked at the initiative and it looks like that parameter is called logAnalyticsWorkspaceIdforVMReporting

Can you try that instead and see if it works?

from azure-blueprints.

alex-frankel avatar alex-frankel commented on June 20, 2024

Here is a gist with the full policy-initiative json for reference:
https://gist.github.com/alex-frankel/7c2aa7324ef82720ff8975014bbf7df4

from azure-blueprints.

jpendyala avatar jpendyala commented on June 20, 2024

sure @alex-frankel , thanks for the quick reply. Let me try and get back to you!

from azure-blueprints.

jpendyala avatar jpendyala commented on June 20, 2024

It worked.
The gist you provided is very helpful. How to find more for other initiatives? and how to find the correct parameter for others?

from azure-blueprints.

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.