@Dariusz Kmiecik Greetings!
Short answer: Do not use cp313, use cp310.
In the document it is mentioned that you use below format files for Python 3.10. However t seems you are using "cffi-1.17.1-cp313-cp313-manylinux_2_17_x86_64" which is cp313 so it won't work.
Please use correct file which is present here: cffi · PyPI
You can refer to this document for Python packages in Azure Automation - https://learn.microsoft.com/en-us/azure/automation/python-3-packages?tabs=py3%2Csa-mi
FYI:
Hope this helps. Please let us know if you need further help on this.
If the response helped, do "Accept Answer" and up-vote it