What worked for me was adding the highlighted section below to my host.json file I am working with wrapping fastApi in an azure function.