Deploy Diag settings on Azure Services at scale

Shekar Yenagandula 21 Reputation points
2022-10-06T12:08:20.537+00:00

I would like to deploy this custom policy but it's throwing the below error.
The request content was invalid and could not be deserialized: 'Required property 'policyRule' expects a value but got null. Path 'properties', line 1, position 32764.'.

Code is available on link: https://www.azadvertizer.net/azpolicyinitiativesadvertizer/Deploy-Diagnostics-LogAnalytics.html

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,019 questions
Community Center | Not monitored
0 comments No comments
{count} votes

Accepted answer
  1. Stanislav Zhelyazkov 28,596 Reputation points MVP Volunteer Moderator
    2022-10-06T12:20:49.897+00:00

    Hi,
    This is policy initiative (aka definition set). Policy initiative basically consists of referencing policies that already need to exist. This policy is part of Enterprise-Scale Landing zone. This means that it is not built-in policy and you need to deploy the whole Enterprise-Scale Landing zone. For example, you can see in the code of the definition set that the policies that are referenced needs to exist in management group called 'contoso'. If you have question about Enterprise-Scale landing zone I would suggest to open GitHub issue to them.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.