Skip to content

Commit 1225300

Browse files
author
Kirill Linnik
committed
adjusting comments in the code
1 parent ac03fd5 commit 1225300

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/communication-services/quickstarts/identity/includes/active-directory/service-principal-net.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ In the `Main` method of your `Program.cs` file, add code to call the methods you
9696
```csharp
9797
static void Main(string[] args)
9898
{
99-
// You can find your endpoint and access key from your resource in the Azure portal
100-
// e.g. "https://<RESOURCE_NAME>.communication.azure.com";
99+
// Replace <RESOURCE_NAME> with your Communication Services resource name,
100+
// for example: "https://<RESOURCE_NAME>.communication.azure.com".
101101
Uri endpoint = new("https://<RESOURCENAME>.communication.azure.com/");
102102

103-
// We need an instance of the program class to use within this method.
103+
// Create an instance of the Program class to invoke instance methods.
104104
Program instance = new();
105105

106106
Console.WriteLine("Retrieving new Access Token, using Service Principals");
@@ -109,7 +109,7 @@ static void Main(string[] args)
109109

110110
Console.WriteLine("Sending SMS using Service Principals");
111111

112-
// You will need a phone number from your resource to send an SMS.
112+
// Replace with your Azure Communication Services phone number and the target phone number.
113113
SmsSendResult result = instance.SendSms(endpoint, "<Your Azure Communication Services Phone Number>", "<The Phone Number you'd like to send the SMS to.>", "Hello from using Service Principals");
114114
Console.WriteLine($"Sms id: {result.MessageId}");
115115
Console.WriteLine($"Send Result Successful: {result.Successful}");
@@ -124,11 +124,11 @@ class Program
124124
private DefaultAzureCredential credential = new DefaultAzureCredential();
125125
static void Main(string[] args)
126126
{
127-
// You can find your endpoint and access key from your resource in the Azure portal
128-
// e.g. "https://<RESOURCE_NAME>.communication.azure.com";
127+
// Replace <RESOURCE_NAME> with your Communication Services resource name,
128+
// for example: "https://<RESOURCE_NAME>.communication.azure.com".
129129
Uri endpoint = new("https://acstestingrifox.communication.azure.com/");
130130

131-
// We need an instance of the program class to use within this method.
131+
// Create an instance of the Program class to invoke instance methods.
132132
Program instance = new();
133133

134134
Console.WriteLine("Retrieving new Access Token, using Service Principals");
@@ -137,7 +137,7 @@ class Program
137137

138138
Console.WriteLine("Sending SMS using Service Principals");
139139

140-
// You will need a phone number from your resource to send an SMS.
140+
// Replace with your Azure Communication Services phone number and the target phone number.
141141
SmsSendResult result = instance.SendSms(endpoint, "<Your Azure Communication Services Phone Number>", "<The Phone Number you'd like to send the SMS to.>", "Hello from Service Principals");
142142
Console.WriteLine($"Sms id: {result.MessageId}");
143143
Console.WriteLine($"Send Result Successful: {result.Successful}");

0 commit comments

Comments
 (0)