It seems that PoolAddParameter class in azure.batch does not currently support the identity parameter. There is currently an open GitHub issue to add this to the Python SDK. There is a workaround supplied that uses azure.mgmt.batch for pool creation, as the Pool class there supports managed identity. This sample shows how to create a pool using azure.mgmt.batch. Hope this helps. Let me know if you still need assistance or have further questions.
If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.
If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.
Thank you for helping to improve Microsoft Q&A!