[Azure Load Testing] - Auth with managed identity

Elena Colominschi 0 Reputation points Microsoft Employee
2024-06-10T10:39:10.1566667+00:00

I am trying to configure an azure load test to obtain the AAD bearer token using managed identity. Until now, I used secret-based authentication and I was generating manually the JWT token and passing it though the test parameters. Now, I am trying to use managed identity and generate the token "inside" the load test.

Is there any way to do that?

Thanks in advance!

Azure Load Testing
Azure Load Testing
An Azure service that enables developers and testers to generate insights on how to improve the performance, scalability, and capacity usage of their application
47 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,358 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Navya 6,115 Reputation points Microsoft Vendor
    2024-06-19T13:19:43.71+00:00

    Hi @Elena Colominschi

    Thank you for your patience while I worked on your query and apologize for the delay in our response.

    We can get the token to use managed identity for load test, but there is no way to get inside the azure load test. App Service and Azure Functions provide an internally accessible REST endpoint for token retrieval.

    For your reference: Load test authenticated endpoints | Microsoft Learn

    Hope this helps. Do let us know if you any further queries.

    Thanks,

    Navya.

    0 comments No comments