Manage phone numbers Quickstart

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

Prerequisites

Code Structure

  • ./LookupNumber/Program.cs: Core application code with phone number look up implementation.
  • ./LookupNumber/NumberLookupQuickstart.csproj: Project configuration file.

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-dotnet-quickstarts.git
  3. With the Connection String procured in pre-requisites, add connection string as an environment variable named COMMUNICATION_SERVICES_CONNECTION_STRING
  4. Decide which lookup you would like to perform, and keep in mind that looking up all the operator details incurs a cost, while looking up only number formatting is free.

Warning

If you want to avoid incurring a charge, comment out lines 20-22

Run Locally

  1. Open NumberLookupQuickstart.csproj
  2. Run the NumberLookupQuickstart project
  3. Provide a phone number to look up when prompted