Finely dice the onion and sauté in a little oil. Squeeze the garlic and cook with it. Deglaze everything with cream and milk. Crumble the soup cube and let it simmer a little. Cut the ham into small pieces and stir in with the peas. Finally add the parmesan and season with salt and pepper.
Prepare the pasta according to the instructions on the package and mix with the sauce.