Preheat your oven to 375°F (190°C).
Roll out the puff pastry on a lightly floured surface.
Place the brie in the center of the rolled-out pastry.
Combine the cranberries, brown sugar, orange zest, and rosemary in a bowl.
Spoon the cranberry mixture over the brie.
Fold the pastry over the brie, sealing it well.
Brush the pastry with the beaten egg.
Place the wrapped brie on a baking sheet lined with parchment paper.
Bake in the preheated oven for 25-30 minutes or until golden and puffed.
Remove from the oven and let it cool for a few minutes before serving.