Preheat your oven to 400°F (200°C). This will ensure it's ready when you need to bake the hash.
Peel the sweet potatoes and dice them into small cubes, about ½ inch in size. This will help them cook evenly and quickly.
Heat a large skillet over medium heat and add a drizzle of olive oil or cooking spray. Add diced onion, red bell pepper, and minced garlic to the skillet. Sauté for about 5 minutes, or until the vegetables are softened.
Once the onions are translucent and the peppers are tender, add the diced sweet potatoes to the skillet. Season with salt and pepper to taste. Cook for another 8-10 minutes, stirring occasionally, until the sweet potatoes are tender and slightly caramelized.
Using the back of a spoon, create 4 small wells or indentations in the sweet potato mixture. This is where you'll crack the eggs later.
Carefully crack one egg into each well or indentation you created in the sweet potato mixture. This will allow the eggs to cook directly on top of the hash.
Transfer the skillet to the preheated oven and bake for about 10-15 minutes, or until the egg whites are set but the yolks are still slightly runny. Keep an eye on it towards the end to prevent overcooking the eggs.
Once the eggs are cooked to your desired doneness, remove the skillet from the oven. Garnish with chopped fresh parsley or cilantro if desired. Serve the sweet potato breakfast hash hot, directly from the skillet, dividing it into individual portions.