Begin by thinly slicing onions. Place onions, garlic, and butter into instant pot insert of the Ninja Foodi Deluxe and turn on to Saute function.Saute for about 20 minutes, stirring often.
Add in sugar and bay leaf and saute for another 5, continuing to stir.
When onions have turned brown, add brandy and scrape up the fond from the bottom using a wooden spoon (This part is important, it really gives a depth of flavor).
Add in broth, thyme, salt and pepper.
Place pressure cooker lid on to the Ninja Foodi and change setting to pressure cook and cook at High Pressure for 10 minutes.
Allow to natural release for 5 minutes and then carefully quick release the rest of the way.
While the soup is cooking in Instant Pot, slice french bread about ½ inch thick.
Turn on broiler and top bread slices with cheese. Toast bread until cheese is golden brown. Watch carefully this will go very quickly.
Ladle soup into bowls and top with cheese toast.