parameters associated with it which exceeds the maximum limit of '100'

Kristiansen, Håvard 16 Reputation points
2021-05-19T10:30:33.813+00:00

We're importing an entire compliance policy from https://github.com/Azure/azure-policy/blob/master/built-in-policies/policySetDefinitions/Regulatory%20Compliance/CISv1_3_0.json

But when we try to apply the import we're reciving the error due to parameter restricitons on 100:

Error: creating Policy Set Definition "Azure CIS": policy.SetDefinitionsClient#CreateOrUpdateAtManagementGroup: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="TooManyPolicySetParameters" Message="The policy set 'Azure CIS' has '111' parameters associated with it which exceeds the maximum limit of '100'."

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
756 questions
{count} votes

1 answer

Sort by: Most helpful
  1. tbgangav-MSFT 10,236 Reputation points
    2021-05-21T07:55:46.807+00:00

    Hi @Kristiansen, Håvard ,

    Update:

    Built-in policies sometimes have different limits than custom policies. The limit on policies per policySet was increased to allow users to duplicate large policySets but it looks like now the parameter limit has been exceeded as well in a policySet that users want to duplicate. So we will open a task to increase the parameter limit to match what built-ins allow. In the meantime that policySet is a built-in policySet that is already available for any customer in the portal so you do not have to create it yourself.