microsoft / azure-load-testing

MIT License
22 stars 2 forks source link

[BUG] Cannot create test with Load -> Private traffic mode #111

Closed Eonasdan closed 1 year ago

Eonasdan commented 1 year ago

Describe the bug We are attempting to follow this article. I've created a simple node web app (no code deployed), a load test resource, two vnets and a nat gateway with the public ip prefix deployed to East US. When I try to create a test loading a simple jmx file without the private traffic mode, it works correctly. If I create a new test exactly the same way except I set the traffic mode to private. After clicking create in the final step, the portal simply gives an error that it failed. There is no additional details or logs that I can find.

To Reproduce Steps to reproduce the behavior:

  1. Follow the steps in the linked article
  2. Receive error image

Expected behavior No error 😄. We realize this is in preview but there's multiple articles that suggest this is a 'supported' feature.

Desktop (please complete the following information):

A coworker tried this on a mac. I'm not sure of his browser and version info.

AB#1656584

Nagarjuna-Vipparthi commented 1 year ago

@Eonasdan Can you please confirm if you are meeting all the prerequisites mentioned here?

Eonasdan commented 1 year ago

We solved this by giving the load test resource a managed identity and giving that network contrib on the vnet. The docs should be updated to reflect this.

Nagarjuna-Vipparthi commented 1 year ago

@Eonasdan Great to know that it is working for you. There was an issue in our service, and it is fixed now. Can you drop the network contributor access to managed identity and check please? Thanks.

Eonasdan commented 1 year ago

@Nagarjuna-Vipparthi I disabled the managed identity on the load test resource and I was able to create a new test with a jmx file and run it successfully. Thanks