Running a Crew inside an Azure Function

I am wondering what it would take to run a crew inside an Azure Function. There seem to be a lot of dependencies that are installed via ‘crewai install’. How would I accomplish the same using a requirements.txt file? Would I need to build my entire crew using code only (not relying on yaml files)?