TooManyTargetResourceGroups: The deployment targets too many resource groups
The deployment targets more resource groups than Azure allows in a single deployment. This is a limit on the number of target groups, not on the number of resources inside a group.
What to check
- Count the distinct resource groups targeted by the template and its nested deployments or Bicep modules. Check the current documented limit for the deployment scope.
- Remove unintended targets or split the work into deployments that each target fewer groups. Preserve dependencies between deployments that use one another's outputs.