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)?

crewai install is really just the cli command that runs uv sync under the hood. if you need to add dependencies from a requirements.txt instead of the pyproject.toml try:

uv add -r requirements.txt
uv sync

check out the uv documentation here for more detail → Locking environments | uv