Technical & DevelopmentIntermediate
azure-communication-sms-java
SMS sending and delivery reports
Developer Setup
Setup & Installation
bash
npx skills add https://github.com/microsoft/skills --skill azure-communication-sms-javanpx skills add https://github.com/microsoft/skills --skill azure-communication-sms-javaOr paste this URL into your assistant to install:
Overview
What This Skill Does
Wraps the Azure Communication Services SMS Java SDK to send text messages to one or more recipients. Supports OTP delivery, bulk messaging, delivery status tracking via Event Grid, and async operations. Works with connection strings, access keys, or DefaultAzureCredential.
Application
When to use this Skill
- Configuring integration settings for custom agent workflows.
- Optimizing query execution and response latency in production.
- Developing clean, standard-compliant implementations for enterprise services.
- Troubleshooting connection timeouts and authentication handshakes.
- Monitoring API rate limits and execution pipelines programmatically.
Documentation
Show Skills.md file
Azure Communication SMS (Java)
Send SMS messages to single or multiple recipients with delivery reporting.
Installation
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-communication-sms</artifactId>
<version>1.2.0</version>
</dependency>
Client Creation
import com.azure.communication.sms.SmsClient;
import com.azure.communication.sms.SmsClientBuilder;
import com.azure.core.credential.TokenCredential;
import com.azure.identity.AzureIdentityEnvVars;
import com.azure.identity.DefaultAzureCredentialBuilder;
import com.azure.identity.ManagedIdentityCredentialBuilder;
// Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=<specific_credential>
TokenCredential credential = new DefaultAzureCredentialBuilder()
.requireEnvVars(AzureIdentityEnvVars.AZURE_TOKEN_CREDENTIALS)
.build();
// Or use a specific credential directly in production:
// See https://learn.microsoft.com/java/api/overview/azure/identity-readme?view=azure-java-stable#credential-classes
// TokenCredential credential = new ManagedIdentityCredentialBuilder().build();
// With DefaultAzureCredential (recommended)
SmsClient smsClient = new SmsClientBuilder()
.endpoint("https://<resource>.communication.azure.com")
.credential(credential)
.buildClient();
// With connection string
SmsClient smsClient = new SmsClientBuilder()
.connectionString("<connection-string>")
.buildClient();
// With AzureKeyCredential
import com.azure.core.credential.AzureKeyCredential;
SmsClient smsClient = new SmsClientBuilder()
.endpoint("https://<resource>.communication.azure.com")
.credential(new AzureKeyCredential("<access-key>"))
.buildClient();
// Async client
SmsAsyncClient smsAsyncClient = new SmsClientBuilder()
.connectionString("<connection-string>")
.buildAsyncClient();
Lines 1 - 56 of 280
Recommendations
Explore other random skills
TechnicalIntermediate
sentry-ruby-sdk
Full Sentry SDK setup for Ruby (Rails, Sinatra, Rack, Sidekiq, Resque)
TechnicalIntermediate
sentry-react-sdk
Full Sentry SDK setup for React (React Router v5-v7, TanStack Router, Redux, Vite, webpack)
TechnicalIntermediate
sentry-svelte-sdk
Full Sentry SDK setup for Svelte and SvelteKit