Azure communication service private endpoint connection and managed identity authentication

Philipp 0 Reputation points
2024-05-21T12:18:45.8766667+00:00

Hi community,

we are currently investigating Azure Communication Service to send SMS notifications for our product. I read the documentation and also startet the implementation using the Java SDK but there are two open questions which are not answered (from my point of view) in the doc.

  1. We want so send SMS from our AKS cluster. Normally we connect other azure services via private endpoint connections. Is this also possible for the communication service? And if not, is this planned/on the roadmap?
  2. The documentation is mainly focusing on key authentication using the primary/secondary key from the azure portal. But there is also the way to use managed identities for authentication. We crated a managed identity with contributor permissions and scope set to the communication service. How do we use this managed identity with the Java SDK. Would be great, if someone could share a sample code snippet.

Kind regards,
Philipp

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
753 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,052 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 19,631 Reputation points Microsoft Employee
    2024-05-22T06:02:43.1333333+00:00

    @Philipp Thank you for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this.

    1. We want so send SMS from our AKS cluster. Normally we connect other azure services via private endpoint connections. Is this also possible for the communication service? And if not, is this planned/on the roadmap?

    Connecting to ACS resource using private endpoint is not supported and also, I don't see Azure Communication Service is being listed here in this documentation which has list the of service which Azure Service support private endpoint communication. I am checking with internal team on the same and will update you here Once I hear back from them.

    1. The documentation is mainly focusing on key authentication using the primary/secondary key from the azure portal. But there is also the way to use managed identities for authentication. We crated a managed identity with contributor permissions and scope set to the communication service. How do we use this managed identity with the Java SDK. Would be great, if someone could share a sample code snippet.

    Connecting to Azure Communication service is possible you can refer to the below outlined documentations.

    1. Connecting and Authentication to Azure Communication Service using Managed Identity.
    2. Java SDK Sample to send SMS using createSyncClientUsingTokenCredential().

    Hope this helps, let me know if you have any further questions on this.

    1 person found this answer helpful.