pnopjp / jmeter-plugins

Apache JMeter plugins for Microsoft Azure
Apache License 2.0
17 stars 13 forks source link

Use of ManagedIdentity in Azure LoadTest? #18

Open azurepilot opened 10 months ago

azurepilot commented 10 months ago

I was successful in using this jmeter-plugin in Azure LoadTest for my test scenarios. But I only succeeded in using a connections string for the servicebus and putting c-string that into a KeyVault. Unfortunately, I found no way to use the ManagedIdentity, which can be assigned to AzureLoad test, to use that MID to submit messages to the SB. How can that be realized? Is that somehow possible with this version 0.3.0 or is there any change required?

kuniteru commented 10 months ago

This plugin can submit messages to the Service Bus using Managed ID, but I have also confirmed that it does not work in Azure Load Testing as you say.

The log outputs "ManagedIdentityCredential authentication unavailable. Connection to IMDS endpoint cannot be established, Connection refused.", so it seems that the Managed ID is not properly set for the Test engine server in Azure Load Testing.

I will report it to Microsoft as a glitch, and if you would like, you can contact Azure's support center or others to inquire about it as well.

azurepilot commented 10 months ago

Thank you for the feedback. I would appreciate if you could report it to MS. I will try as well. The more feedback they get, the higher is the chance for a bugfix ;-)

kuniteru commented 10 months ago

According to Microsoft, Managed Identity in Azure Load Testing is meant only for accessing Azure Key Vault. https://developercommunity.visualstudio.com/t/Does-not-work-system-assigned-managed-id/10500312#T-ND10507448

We should request to Microsoft that Managed Identity in Azure Load Testing support access to services other than Azure Key Vault.