Chaturvedi, Rupal, Based on my understanding of the scenario/issue, are you storing the service principle information in Environment variables or in the code? Use Azure Active Directory in Communication Services - An Azure Communication Services quickstart | Microsoft Learn
The Azure Identity SDK reads values from three environment variables at runtime to authenticate the application.
- Does it work locally?
- Are you referring to any specific Azure doc for ACS configuration?
- Could you please let us know more details about your setup?
Service Principal for a development environment, see Authorize access with service principal