preheat oven to 350 degrees f (175 degrees c). stir mayonnaise, garlic, rosemary, salt, and black pepper together in a bowl. place chicken pieces into a 9x13-inch baking dish, spread mayonnaise mixture over chicken, and top with parmesan cheese.