Mix flour, baking powder, vanilla sugar, margarine or butter, sugar and eggs in the Thermomix setting for 5/40 sec. Spread the dough in a greased baking pan (diameter 26 cm).
Peel and core the apples, chop in the Thermomix setting for 4/10 sec. Spread on the batter.
For the topping, mix the cream, sour cream, vanilla pudding and sugar in the TM setting 4/10 sec. Spread the cream on the apples and pour the flaked almonds over them.
Bake at 180 ° C for about 45 minutes. Allow to cool in the mold.