Set your oven to 350 degrees Fahrenheit so it's fully heated by the time you're ready to bake. Spray a 9x13 baking dish generously with cooking spray to prevent sticking later. Having this step done early keeps the rest of the process moving smoothly.
In a large bowl, combine the frozen hash browns, ham, cheddar cheese, tomatoes, bell pepper, onion, and garlic. Stir everything together until it's evenly distributed throughout the bowl. Pour this mixture into your prepared baking dish and spread it into an even layer.
In a separate large bowl, whisk together the eggs, milk, salt, and black pepper. Keep whisking until the mixture looks uniform with no streaks of egg white remaining. This step only takes a minute or two, but it makes a real difference in texture.
Slowly pour the egg mixture over the hash brown layer in the baking dish. Use the back of a wooden spoon to gently press everything down so the eggs seep through to the bottom. This helps the casserole bake into one cohesive dish instead of separate layers.
Place the dish in the oven and bake for one hour. You'll know it's ready when the center looks set and the edges have turned a deep golden brown. If the center still jiggles slightly, give it another five to ten minutes.
Let the casserole rest for at least 10 minutes once it comes out of the oven. The center continues to firm up as it sits, which makes for much cleaner slices. Resist the urge to cut into it right away, even though it smells incredible.