EventGridTriggerAttribute has a IsBatched
boolean parameter.
so changing parameters like this enabled batch processing:
public async Task Run([EventGridTrigger(IsBatched = true)] CloudEvent[] cloudEvents, FunctionContext _)
Would have been nice of MS to include this in their docs about batching.