Hello @Prima25 - Thanks for reaching out and apologies for the delay in responding to you.
Try to configure clientID and secret outside jmx script and see if that helps.
Please take a look at this doc for reference: how-to-parameterize-load-tests
----UPDATE:
Looks like you are using certificates for authorization. Currently Azure Load Testing does not support certificate-based authorization. If you can generate a token using client id and secret, you can do that following the steps mentioned here
Hope this helps. and please feel free to reach out if you have any further questions.
------------------------------------------------------------------
If the above response was helpful, please feel free to "Accept as Answer" and "Upvote" the same so it can be beneficial to the community.