Gather all ingredients.
Whisk together mayonnaise, sugar, vinegar, and salt in a 1-quart container with a lid.
Add carrots, bacon, shallots, cranberries, pecan pieces, and parsley; cover and shake until carrots are evenly coated in mayonnaise mixture.
Transfer to a serving bowl and garnish with parsley.
