PoolAddParameter - python add user assigned identity

Emil Obrestad 20 Reputation points
2024-06-17T14:13:24.0033333+00:00

I am creating Azure Batch Pool using the Python Batch SDK.
How can I add user assigned identity when creating the PoolAddParameter? I've tried using BatchPoolIdentity.

I've found a workaround, but it is not optimal.
Scale down Pool nodes after creation --> Manually add user assigned identity --> Scale up Pool nodes --> Then user assigned identity works.

How can I add user assigned identity for PoolAddParameter?

Thanks!

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
642 questions
Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
317 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 34,766 Reputation points Microsoft Employee
    2024-06-17T20:04:46.7933333+00:00

    @Emil Obrestad

    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!

    User's image

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful