Preheat oven to 375°F (190°C). Grease a baking dish.
Cook rice according to package instructions if not already prepared.
In a skillet, melt butter and sauté onion and garlic until soft.
In a saucepan, melt butter for sauce. Whisk in flour and cook 1–2 minutes.
Slowly whisk in milk and cream until smooth and thickened.
Stir in Parmesan, mozzarella, garlic powder, onion powder, salt, and pepper.
In a large bowl, combine chicken, rice, sautéed onions, and Alfredo sauce. Mix well.
Pour mixture into baking dish and spread evenly.
Top with extra mozzarella cheese if desired.
Bake for 25–30 minutes until bubbly and golden.
Let rest 10 minutes before serving.