Hi ,
Thanks for reaching out to Microsoft Q&A.
Azure Load Testing cannot produce user ID tokens and cannot bypass EasyAuth. To load test user-authenticated endpoints, you need to adjust the app or use a different tool.
- Azure Load Testing cannot authenticate as a user. It only supports client_credentials (service principal). There is no supported mode where ALT signs in as a real user or generates a user ID token with email.
ALT cannot simulate an interactive browser login. No MSAL interactive, no redirect flow, no device code flow. You cannot make ALT perform a full Entra login and return an ID token.
You cannot make EasyAuth accept client_credentials tokens without changing your app. EasyAuth will reject service principal tokens if your code expects a user (ID token with email claim). To load test this setup, you must change your auth model for the load test:
Option A: Add a separate API scope that allows app-only access and bypasses user-claim checks.
Option B: Add test-only bypass logic (feature flag) to skip the user email requirement.
Option C: Hit a backend API endpoint that does not depend on user identity.
- If you need true userflow load testing, you must use a different tool. Ex., JMeter, Playwright, K6, or Selenium based tests that perform the interactive login manually.
Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.