Manage Phone Numbers

For full instructions on how to build this code sample from scratch, look at Quickstart: Manage Phone Numbers

Prerequisites

Install the package

npm install @azure/communication-phone-numbers --save

Before running sample code

  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-javascript-quickstarts.git
  3. With the Communication Services procured in pre-requisites, add connection string to environment variable using below command

setx COMMUNICATION_SERVICES_CONNECTION_STRING <CONNECTION_STRING>

Run the code

From a console prompt, navigate to the directory containing the phone-numbers-quickstart.js file, then execute the following node command to run the app.

node phone-numbers-quickstart.js