diff --git a/sdk/communication/communication-phone-numbers/package.json b/sdk/communication/communication-phone-numbers/package.json index 3bda096acece..b7b261f1d03c 100644 --- a/sdk/communication/communication-phone-numbers/package.json +++ b/sdk/communication/communication-phone-numbers/package.json @@ -130,11 +130,8 @@ "Azure Communication Services account": "https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource" }, "skip": [ - "getPurchasedPhoneNumber.js", - "getPurchasedPhoneNumbers.js", "purchasePhoneNumber.js", - "releasePhoneNumber.js", - "updatePhoneNumberCapabilities.js" + "releasePhoneNumber.js" ] } } diff --git a/sdk/communication/communication-phone-numbers/sample.env b/sdk/communication/communication-phone-numbers/sample.env index 0ec12166ed91..031e1fd8bcc9 100644 --- a/sdk/communication/communication-phone-numbers/sample.env +++ b/sdk/communication/communication-phone-numbers/sample.env @@ -1,6 +1,6 @@ # Used in most samples. Retrieve these values from a Communication Services instance # in the Azure Portal. -COMMUNICATION_CONNECTION_STRING="endpoint=https://.communication.azure.net/;accessKey=" +COMMUNICATION_SAMPLES_CONNECTION_STRING="endpoint=https://.communication.azure.net/;accessKey=" # The phone number to be retrieved by the getPurchasedPhoneNumber sample PHONE_NUMBER_TO_GET="+16135550147" diff --git a/sdk/communication/communication-phone-numbers/samples-dev/getPurchasedPhoneNumber.ts b/sdk/communication/communication-phone-numbers/samples-dev/getPurchasedPhoneNumber.ts index 44b466d44e3c..df39c17c6faf 100644 --- a/sdk/communication/communication-phone-numbers/samples-dev/getPurchasedPhoneNumber.ts +++ b/sdk/communication/communication-phone-numbers/samples-dev/getPurchasedPhoneNumber.ts @@ -16,14 +16,15 @@ export async function main() { // You will need to set this environment variable or edit the following values const connectionString = - process.env.COMMUNICATION_CONNECTION_STRING || + process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING || "endpoint=https://resourceName.communication.azure.net/;accessKey=test-key"; // create new client const client = new PhoneNumbersClient(connectionString); - // You will need to set this environment variable or edit the following values - const phoneNumberToGet = process.env.PHONE_NUMBER_TO_GET || ""; + // You will need to set any of these environment variables or edit the following values + const phoneNumberToGet = + process.env.PHONE_NUMBER_TO_GET || process.env.AZURE_PHONE_NUMBER || ""; // get the phone number const phoneNumber = await client.getPurchasedPhoneNumber(phoneNumberToGet); diff --git a/sdk/communication/communication-phone-numbers/samples-dev/getPurchasedPhoneNumbers.ts b/sdk/communication/communication-phone-numbers/samples-dev/getPurchasedPhoneNumbers.ts index b6c3a948b0ac..d8a7e7fbdc33 100644 --- a/sdk/communication/communication-phone-numbers/samples-dev/getPurchasedPhoneNumbers.ts +++ b/sdk/communication/communication-phone-numbers/samples-dev/getPurchasedPhoneNumbers.ts @@ -12,11 +12,11 @@ import * as dotenv from "dotenv"; dotenv.config(); export async function main() { - console.log("\n== Get a Purchased Phone Numbers Sample ==\n"); + console.log("\n== Get Purchased Phone Numbers Sample ==\n"); // You will need to set this environment variable or edit the following values const connectionString = - process.env.COMMUNICATION_CONNECTION_STRING || + process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING || "endpoint=https://resourceName.communication.azure.net/;accessKey=test-key"; // create new client diff --git a/sdk/communication/communication-phone-numbers/samples-dev/purchasePhoneNumber.ts b/sdk/communication/communication-phone-numbers/samples-dev/purchasePhoneNumber.ts index 772ebf6eb58b..38d21b0b6a1e 100644 --- a/sdk/communication/communication-phone-numbers/samples-dev/purchasePhoneNumber.ts +++ b/sdk/communication/communication-phone-numbers/samples-dev/purchasePhoneNumber.ts @@ -19,7 +19,7 @@ export async function main() { // You will need to set this environment variable or edit the following values const connectionString = - process.env.COMMUNICATION_CONNECTION_STRING || + process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING || "endpoint=https://resourceName.communication.azure.net/;accessKey=test-key"; // create new client diff --git a/sdk/communication/communication-phone-numbers/samples-dev/releasePhoneNumber.ts b/sdk/communication/communication-phone-numbers/samples-dev/releasePhoneNumber.ts index d40d1dbf845f..ced277e37a61 100644 --- a/sdk/communication/communication-phone-numbers/samples-dev/releasePhoneNumber.ts +++ b/sdk/communication/communication-phone-numbers/samples-dev/releasePhoneNumber.ts @@ -16,14 +16,17 @@ export async function main() { // You will need to set this environment variable or edit the following values const connectionString = - process.env.COMMUNICATION_CONNECTION_STRING || + process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING || "endpoint=https://resourceName.communication.azure.net/;accessKey=test-key"; // create new client const client = new PhoneNumbersClient(connectionString); - // You will need to set this environment variable or edit the following values - const phoneNumberToRelease = process.env.PHONE_NUMBER_TO_RELEASE || ""; + // You will need to set any of these environment variables or edit the following values + const phoneNumberToRelease = + process.env.PHONE_NUMBER_TO_RELEASE || + process.env.AZURE_PHONE_NUMBER || + ""; // get poller to monitor release const releasePoller = await client.beginReleasePhoneNumber(phoneNumberToRelease); diff --git a/sdk/communication/communication-phone-numbers/samples-dev/updatePhoneNumberCapabilities.ts b/sdk/communication/communication-phone-numbers/samples-dev/updatePhoneNumberCapabilities.ts index 5847aeb2af2b..780bf36f4b3d 100644 --- a/sdk/communication/communication-phone-numbers/samples-dev/updatePhoneNumberCapabilities.ts +++ b/sdk/communication/communication-phone-numbers/samples-dev/updatePhoneNumberCapabilities.ts @@ -19,14 +19,17 @@ export async function main() { // You will need to set this environment variable or edit the following values const connectionString = - process.env.COMMUNICATION_CONNECTION_STRING || + process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING || "endpoint=https://resourceName.communication.azure.net/;accessKey=test-key"; // create new client const client = new PhoneNumbersClient(connectionString); - // You will need to set this environment variable or edit the following values - const phoneNumberToUpdate = process.env.PHONE_NUMBER_TO_UPDATE || ""; + // You will need to set any of these environment variables or edit the following values + const phoneNumberToUpdate = + process.env.PHONE_NUMBER_TO_UPDATE || + process.env.AZURE_PHONE_NUMBER || + ""; // This will update the phone number to send and receive sms, but only send calls. const updateRequest: PhoneNumberCapabilitiesRequest = { diff --git a/sdk/communication/communication-phone-numbers/samples/v1/javascript/README.md b/sdk/communication/communication-phone-numbers/samples/v1/javascript/README.md index 59e6ea3b14b8..bfb8722a37f8 100644 --- a/sdk/communication/communication-phone-numbers/samples/v1/javascript/README.md +++ b/sdk/communication/communication-phone-numbers/samples/v1/javascript/README.md @@ -53,7 +53,7 @@ node getPurchasedPhoneNumber.js Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): ```bash -npx cross-env COMMUNICATION_CONNECTION_STRING="" PHONE_NUMBER_TO_GET="" node getPurchasedPhoneNumber.js +npx cross-env COMMUNICATION_SAMPLES_CONNECTION_STRING="" PHONE_NUMBER_TO_GET="" AZURE_PHONE_NUMBER="" node getPurchasedPhoneNumber.js ``` ## Next Steps diff --git a/sdk/communication/communication-phone-numbers/samples/v1/javascript/getPurchasedPhoneNumber.js b/sdk/communication/communication-phone-numbers/samples/v1/javascript/getPurchasedPhoneNumber.js index f104eb5929e0..61ca53cf227e 100644 --- a/sdk/communication/communication-phone-numbers/samples/v1/javascript/getPurchasedPhoneNumber.js +++ b/sdk/communication/communication-phone-numbers/samples/v1/javascript/getPurchasedPhoneNumber.js @@ -16,14 +16,15 @@ async function main() { // You will need to set this environment variable or edit the following values const connectionString = - process.env.COMMUNICATION_CONNECTION_STRING || + process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING || "endpoint=https://resourceName.communication.azure.net/;accessKey=test-key"; // create new client const client = new PhoneNumbersClient(connectionString); - // You will need to set this environment variable or edit the following values - const phoneNumberToGet = process.env.PHONE_NUMBER_TO_GET || ""; + // You will need to set any of these environment variables or edit the following values + const phoneNumberToGet = + process.env.PHONE_NUMBER_TO_GET || process.env.AZURE_PHONE_NUMBER || ""; // get the phone number const phoneNumber = await client.getPurchasedPhoneNumber(phoneNumberToGet); diff --git a/sdk/communication/communication-phone-numbers/samples/v1/javascript/getPurchasedPhoneNumbers.js b/sdk/communication/communication-phone-numbers/samples/v1/javascript/getPurchasedPhoneNumbers.js index 23b919508c2f..9459df0c1c3a 100644 --- a/sdk/communication/communication-phone-numbers/samples/v1/javascript/getPurchasedPhoneNumbers.js +++ b/sdk/communication/communication-phone-numbers/samples/v1/javascript/getPurchasedPhoneNumbers.js @@ -12,11 +12,11 @@ const dotenv = require("dotenv"); dotenv.config(); async function main() { - console.log("\n== Get a Purchased Phone Numbers Sample ==\n"); + console.log("\n== Get Purchased Phone Numbers Sample ==\n"); // You will need to set this environment variable or edit the following values const connectionString = - process.env.COMMUNICATION_CONNECTION_STRING || + process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING || "endpoint=https://resourceName.communication.azure.net/;accessKey=test-key"; // create new client @@ -29,6 +29,7 @@ async function main() { console.log(`Phone number type is ${phoneNumber.phoneNumberType}`); } } + main().catch((error) => { console.log("The sample encountered an error:", error); process.exit(1); diff --git a/sdk/communication/communication-phone-numbers/samples/v1/javascript/purchasePhoneNumber.js b/sdk/communication/communication-phone-numbers/samples/v1/javascript/purchasePhoneNumber.js index 3f1b6d843885..fc9205ec184b 100644 --- a/sdk/communication/communication-phone-numbers/samples/v1/javascript/purchasePhoneNumber.js +++ b/sdk/communication/communication-phone-numbers/samples/v1/javascript/purchasePhoneNumber.js @@ -16,7 +16,7 @@ async function main() { // You will need to set this environment variable or edit the following values const connectionString = - process.env.COMMUNICATION_CONNECTION_STRING || + process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING || "endpoint=https://resourceName.communication.azure.net/;accessKey=test-key"; // create new client @@ -57,6 +57,7 @@ async function main() { console.log("Did not find any phone numbers."); } } + main().catch((error) => { console.log("The sample encountered an error:", error); process.exit(1); diff --git a/sdk/communication/communication-phone-numbers/samples/v1/javascript/releasePhoneNumber.js b/sdk/communication/communication-phone-numbers/samples/v1/javascript/releasePhoneNumber.js index 1884dddccbfa..d4c901aa4c92 100644 --- a/sdk/communication/communication-phone-numbers/samples/v1/javascript/releasePhoneNumber.js +++ b/sdk/communication/communication-phone-numbers/samples/v1/javascript/releasePhoneNumber.js @@ -16,14 +16,17 @@ async function main() { // You will need to set this environment variable or edit the following values const connectionString = - process.env.COMMUNICATION_CONNECTION_STRING || + process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING || "endpoint=https://resourceName.communication.azure.net/;accessKey=test-key"; // create new client const client = new PhoneNumbersClient(connectionString); - // You will need to set this environment variable or edit the following values - const phoneNumberToRelease = process.env.PHONE_NUMBER_TO_RELEASE || ""; + // You will need to set any of these environment variables or edit the following values + const phoneNumberToRelease = + process.env.PHONE_NUMBER_TO_RELEASE || + process.env.AZURE_PHONE_NUMBER || + ""; // get poller to monitor release const releasePoller = await client.beginReleasePhoneNumber(phoneNumberToRelease); @@ -33,6 +36,7 @@ async function main() { console.log("Successfully release phone number."); } + main().catch((error) => { console.log("The sample encountered an error:", error); process.exit(1); diff --git a/sdk/communication/communication-phone-numbers/samples/v1/javascript/sample.env b/sdk/communication/communication-phone-numbers/samples/v1/javascript/sample.env index 0ec12166ed91..031e1fd8bcc9 100644 --- a/sdk/communication/communication-phone-numbers/samples/v1/javascript/sample.env +++ b/sdk/communication/communication-phone-numbers/samples/v1/javascript/sample.env @@ -1,6 +1,6 @@ # Used in most samples. Retrieve these values from a Communication Services instance # in the Azure Portal. -COMMUNICATION_CONNECTION_STRING="endpoint=https://.communication.azure.net/;accessKey=" +COMMUNICATION_SAMPLES_CONNECTION_STRING="endpoint=https://.communication.azure.net/;accessKey=" # The phone number to be retrieved by the getPurchasedPhoneNumber sample PHONE_NUMBER_TO_GET="+16135550147" diff --git a/sdk/communication/communication-phone-numbers/samples/v1/javascript/updatePhoneNumberCapabilities.js b/sdk/communication/communication-phone-numbers/samples/v1/javascript/updatePhoneNumberCapabilities.js index 8b932818ecfe..6d1c7d9b421d 100644 --- a/sdk/communication/communication-phone-numbers/samples/v1/javascript/updatePhoneNumberCapabilities.js +++ b/sdk/communication/communication-phone-numbers/samples/v1/javascript/updatePhoneNumberCapabilities.js @@ -16,14 +16,17 @@ async function main() { // You will need to set this environment variable or edit the following values const connectionString = - process.env.COMMUNICATION_CONNECTION_STRING || + process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING || "endpoint=https://resourceName.communication.azure.net/;accessKey=test-key"; // create new client const client = new PhoneNumbersClient(connectionString); - // You will need to set this environment variable or edit the following values - const phoneNumberToUpdate = process.env.PHONE_NUMBER_TO_UPDATE || ""; + // You will need to set any of these environment variables or edit the following values + const phoneNumberToUpdate = + process.env.PHONE_NUMBER_TO_UPDATE || + process.env.AZURE_PHONE_NUMBER || + ""; // This will update the phone number to send and receive sms, but only send calls. const updateRequest = { @@ -40,6 +43,7 @@ async function main() { const { capabilities } = await updatePoller.pollUntilDone(); console.log(`These are the update capabilities: ${capabilities}`); } + main().catch((error) => { console.log("The sample encountered an error:", error); process.exit(1); diff --git a/sdk/communication/communication-phone-numbers/samples/v1/typescript/README.md b/sdk/communication/communication-phone-numbers/samples/v1/typescript/README.md index ce3c6be78eaf..190c17eb258d 100644 --- a/sdk/communication/communication-phone-numbers/samples/v1/typescript/README.md +++ b/sdk/communication/communication-phone-numbers/samples/v1/typescript/README.md @@ -65,7 +65,7 @@ node dist/getPurchasedPhoneNumber.ts Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): ```bash -npx cross-env COMMUNICATION_CONNECTION_STRING="" PHONE_NUMBER_TO_GET="" node dist/getPurchasedPhoneNumber.js +npx cross-env COMMUNICATION_SAMPLES_CONNECTION_STRING="" PHONE_NUMBER_TO_GET="" AZURE_PHONE_NUMBER="" node dist/getPurchasedPhoneNumber.js ``` ## Next Steps diff --git a/sdk/communication/communication-phone-numbers/samples/v1/typescript/sample.env b/sdk/communication/communication-phone-numbers/samples/v1/typescript/sample.env index 0ec12166ed91..031e1fd8bcc9 100644 --- a/sdk/communication/communication-phone-numbers/samples/v1/typescript/sample.env +++ b/sdk/communication/communication-phone-numbers/samples/v1/typescript/sample.env @@ -1,6 +1,6 @@ # Used in most samples. Retrieve these values from a Communication Services instance # in the Azure Portal. -COMMUNICATION_CONNECTION_STRING="endpoint=https://.communication.azure.net/;accessKey=" +COMMUNICATION_SAMPLES_CONNECTION_STRING="endpoint=https://.communication.azure.net/;accessKey=" # The phone number to be retrieved by the getPurchasedPhoneNumber sample PHONE_NUMBER_TO_GET="+16135550147" diff --git a/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/getPurchasedPhoneNumber.ts b/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/getPurchasedPhoneNumber.ts index 44b466d44e3c..df39c17c6faf 100644 --- a/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/getPurchasedPhoneNumber.ts +++ b/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/getPurchasedPhoneNumber.ts @@ -16,14 +16,15 @@ export async function main() { // You will need to set this environment variable or edit the following values const connectionString = - process.env.COMMUNICATION_CONNECTION_STRING || + process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING || "endpoint=https://resourceName.communication.azure.net/;accessKey=test-key"; // create new client const client = new PhoneNumbersClient(connectionString); - // You will need to set this environment variable or edit the following values - const phoneNumberToGet = process.env.PHONE_NUMBER_TO_GET || ""; + // You will need to set any of these environment variables or edit the following values + const phoneNumberToGet = + process.env.PHONE_NUMBER_TO_GET || process.env.AZURE_PHONE_NUMBER || ""; // get the phone number const phoneNumber = await client.getPurchasedPhoneNumber(phoneNumberToGet); diff --git a/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/getPurchasedPhoneNumbers.ts b/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/getPurchasedPhoneNumbers.ts index b6c3a948b0ac..d8a7e7fbdc33 100644 --- a/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/getPurchasedPhoneNumbers.ts +++ b/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/getPurchasedPhoneNumbers.ts @@ -12,11 +12,11 @@ import * as dotenv from "dotenv"; dotenv.config(); export async function main() { - console.log("\n== Get a Purchased Phone Numbers Sample ==\n"); + console.log("\n== Get Purchased Phone Numbers Sample ==\n"); // You will need to set this environment variable or edit the following values const connectionString = - process.env.COMMUNICATION_CONNECTION_STRING || + process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING || "endpoint=https://resourceName.communication.azure.net/;accessKey=test-key"; // create new client diff --git a/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/purchasePhoneNumber.ts b/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/purchasePhoneNumber.ts index 772ebf6eb58b..38d21b0b6a1e 100644 --- a/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/purchasePhoneNumber.ts +++ b/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/purchasePhoneNumber.ts @@ -19,7 +19,7 @@ export async function main() { // You will need to set this environment variable or edit the following values const connectionString = - process.env.COMMUNICATION_CONNECTION_STRING || + process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING || "endpoint=https://resourceName.communication.azure.net/;accessKey=test-key"; // create new client diff --git a/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/releasePhoneNumber.ts b/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/releasePhoneNumber.ts index d40d1dbf845f..ced277e37a61 100644 --- a/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/releasePhoneNumber.ts +++ b/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/releasePhoneNumber.ts @@ -16,14 +16,17 @@ export async function main() { // You will need to set this environment variable or edit the following values const connectionString = - process.env.COMMUNICATION_CONNECTION_STRING || + process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING || "endpoint=https://resourceName.communication.azure.net/;accessKey=test-key"; // create new client const client = new PhoneNumbersClient(connectionString); - // You will need to set this environment variable or edit the following values - const phoneNumberToRelease = process.env.PHONE_NUMBER_TO_RELEASE || ""; + // You will need to set any of these environment variables or edit the following values + const phoneNumberToRelease = + process.env.PHONE_NUMBER_TO_RELEASE || + process.env.AZURE_PHONE_NUMBER || + ""; // get poller to monitor release const releasePoller = await client.beginReleasePhoneNumber(phoneNumberToRelease); diff --git a/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/updatePhoneNumberCapabilities.ts b/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/updatePhoneNumberCapabilities.ts index 5847aeb2af2b..780bf36f4b3d 100644 --- a/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/updatePhoneNumberCapabilities.ts +++ b/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/updatePhoneNumberCapabilities.ts @@ -19,14 +19,17 @@ export async function main() { // You will need to set this environment variable or edit the following values const connectionString = - process.env.COMMUNICATION_CONNECTION_STRING || + process.env.COMMUNICATION_SAMPLES_CONNECTION_STRING || "endpoint=https://resourceName.communication.azure.net/;accessKey=test-key"; // create new client const client = new PhoneNumbersClient(connectionString); - // You will need to set this environment variable or edit the following values - const phoneNumberToUpdate = process.env.PHONE_NUMBER_TO_UPDATE || ""; + // You will need to set any of these environment variables or edit the following values + const phoneNumberToUpdate = + process.env.PHONE_NUMBER_TO_UPDATE || + process.env.AZURE_PHONE_NUMBER || + ""; // This will update the phone number to send and receive sms, but only send calls. const updateRequest: PhoneNumberCapabilitiesRequest = { diff --git a/sdk/communication/communication-phone-numbers/test/get.spec.ts b/sdk/communication/communication-phone-numbers/test/get.spec.ts index f511affeb9f1..a0382f84ba6f 100644 --- a/sdk/communication/communication-phone-numbers/test/get.spec.ts +++ b/sdk/communication/communication-phone-numbers/test/get.spec.ts @@ -40,7 +40,7 @@ matrix([[true, false]], async function(useAad) { const { phoneNumber } = await client.getPurchasedPhoneNumber(purchasedPhoneNumber); assert.strictEqual(purchasedPhoneNumber, phoneNumber); - }).timeout(7000); + }).timeout(10000); it("errors if phone number not found", async function() { const fake = "+14155550100"; diff --git a/sdk/communication/communication-phone-numbers/test/lro.update.spec.ts b/sdk/communication/communication-phone-numbers/test/lro.update.spec.ts index 22d75b4e460d..127c170969e1 100644 --- a/sdk/communication/communication-phone-numbers/test/lro.update.spec.ts +++ b/sdk/communication/communication-phone-numbers/test/lro.update.spec.ts @@ -47,6 +47,6 @@ matrix([[true, false]], async function(useAad) { const phoneNumber = await updatePoller.pollUntilDone(); assert.ok(updatePoller.getOperationState().isCompleted); assert.deepEqual(phoneNumber.capabilities, update); - }).timeout(30000); + }).timeout(60000); }); }); diff --git a/sdk/communication/communication-phone-numbers/tests.yml b/sdk/communication/communication-phone-numbers/tests.yml index 0381d0a417e0..2c1b26d6ab12 100644 --- a/sdk/communication/communication-phone-numbers/tests.yml +++ b/sdk/communication/communication-phone-numbers/tests.yml @@ -14,3 +14,4 @@ stages: AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id) AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret) AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id) + COMMUNICATION_SAMPLES_CONNECTION_STRING: $(communication-livetest-connection-string)