Preheat oven to 350°F (175°C) and grease a loaf pan or 9×9 square pan.
In a large bowl, mix oil, sugar, and eggs until smooth.
In another bowl, combine flour, baking powder, and salt.
Gradually add dry ingredients to the wet mixture, alternating with milk and sourdough discard. Mix gently.
Stir in lemon juice and zest.
Pour batter into the prepared pan.
Bake for 50–60 minutes (loaf pan) or 40–50 minutes (square pan).
Let the Glazed Sourdough Lemon Cake cool in the pan for 15 minutes.