Hi @PrashantRewatkar-4915,
Thanks for posting query in Microsoft Q&A Platform.
From error message it seems you are supplying correct user assigned managed identity. Hence resulted in bad request.
I have gone through documentation SDK for concerned classes and properties. It seems
ManagedIdentityClientIdproperty specifies the client id of a user assigned Managed Identity. Click here to know more about same.
Kindly make sure you pass user assigned managed identity to that property. Managed Identities are two types System assigned and User assigned. Click here to know more about these.
Hope using user assigned managed identity will solve issue here.
----------
Please consider hitting Accept Answer button. Accepted answers help community as well.