Skip to content

Commit

Permalink
Changes for connection string information (Azure-Samples#17)
Browse files Browse the repository at this point in the history
* Clarifications steps and corrections in ReadMe

* Corrections

* More clarification on the connection string

* Update README.MD

Co-authored-by: ddematheu2 <43075365+ddematheu2@users.noreply.github.com>
  • Loading branch information
ravithanneeru and ddematheu2 authored Aug 19, 2021
1 parent 51f18f3 commit d22c2cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ServerRecording/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ It's a Java web application powered by Spring Boot to connect this application w

## Prerequisites

- [Create an Azure Communication Resource](https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource). You'll need to record your resource\'s **connection string** for this quickstart.
- [Visual Studio Code](https://code.visualstudio.com/download)
- [Java Development Kit (JDK) version 11 or above](https://docs.microsoft.com/azure/developer/java/fundamentals/java-jdk-install)
- [Apache Maven](https://maven.apache.org/download.cgi)
- [Spring Boot framework v- 2.5.0](https://spring.io/projects/spring-boot)
- [Docker desktop](https://www.docker.com/products/docker-desktop)
- An Azure account with an active subscription. For details, see here to [create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
- [Create container registry](https://docs.microsoft.com/azure/developer/java/spring-framework/deploy-spring-boot-java-app-on-linux#create-an-azure-container-registry-to-use-as-a-private-docker-registry)
- [Create an Azure Communication Resource](https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource). You'll need to record your resource\'s **connection string** for this quickstart.
- [Create a webhook](https://docs.microsoft.com/azure/communication-services/quickstarts/voice-video-calling/download-recording-file-sample) and subscribe to the recording events.


Expand Down
4 changes: 2 additions & 2 deletions send-sms-quickstart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ For full instructions on how to build this code sample from scratch, look at [Qu

1. Open an instance of PowerShell, Windows Terminal, Command Prompt or equivalent and navigate to the directory that you'd like to clone the sample to.
2. `git clone https://github.com/Azure-Samples/communication-services-java-quickstarts.git`
3. With the Communication Services procured in pre-requisites, add connection string with the access key in the code at line no 24
```String connectionString = "https://<resource-name>.communication.azure.com/;<access-key>";```.
3. With the Communication Services procured in pre-requisites, add connection string in the code at line no 24
```String connectionString = "ACS_Connection_String";```.
4. With the SMS enabled telephone number procured in pre-requisites, add it to the **App.java** file. Assign your ACS telephone number and sender numbers at line 46 and 47.

## Run the code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static void main( String[] args )
//.buildClient();

// You can find your connection string from your resource in the Azure portal
String connectionString = "https://<resource-name>.communication.azure.com/;<access-key>";
String connectionString = "ACS_Connection_String";

SmsClient smsClient = new SmsClientBuilder()
.connectionString(connectionString)
Expand Down

0 comments on commit d22c2cd

Please sign in to comment.