Skip to content

Commit

Permalink
Match connection string variable to test-resources override for sdk/c…
Browse files Browse the repository at this point in the history
…ommunication samples
  • Loading branch information
benbp committed Oct 14, 2020
1 parent 51cda73 commit 2c2b9ad
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ node issueToken.js
Alternatively, run a single sample with the correct environment variables set (step 3 is not required if you do this), for example (cross-platform):

```bash
npx cross-env CONNECTION_STRING="<connection string>" node issueToken.js
npx cross-env COMMUNICATION_CONNECTION_STRING="<connection string>" node issueToken.js
```

## Next Steps
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dotenv.config();

// You will need to set this environment variables or edit the following values
const connectionString =
process.env["CONNECTION_STRING"] || "<communication service connection string>";
process.env["COMMUNICATION_CONNECTION_STRING"] || "<communication service connection string>";

async function main() {
console.log("== Issue Token Sample ==");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dotenv.config();

// You will need to set this environment variables or edit the following values
const connectionString =
process.env["CONNECTION_STRING"] || "<communication service connection string>";
process.env["COMMUNICATION_CONNECTION_STRING"] || "<communication service connection string>";

async function main() {
console.log("== Issue Token Sample ==");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Used in most samples. Retrieve these values from a Communication Service instance
# in the Azure Portal.
CONNECTION_STRING="endpoint=https://<resource name>.communication.azure.net/;accessKey=<key>"
COMMUNICATION_CONNECTION_STRING="endpoint=https://<resource name>.communication.azure.net/;accessKey=<key>"
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ node dist/issueToken.js
Alternatively, run a single sample with the correct environment variables set (step 3 is not required if you do this), for example (cross-platform):

```bash
npx cross-env CONNECTION_STRING="<connection string>" node dist/issueToken.js
npx cross-env COMMUNICATION_CONNECTION_STRING="<connection string>" node dist/issueToken.js
```

## Next Steps
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Used in most samples. Retrieve these values from a Communication Service instance
# in the Azure Portal.
CONNECTION_STRING="endpoint=https://<resource name>.communication.azure.net/;accessKey=<key>"
COMMUNICATION_CONNECTION_STRING="endpoint=https://<resource name>.communication.azure.net/;accessKey=<key>"
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dotenv.config();

// You will need to set this environment variables or edit the following values
const connectionString =
process.env["CONNECTION_STRING"] || "<communication service connection string>";
process.env["COMMUNICATION_CONNECTION_STRING"] || "<communication service connection string>";

export const main = async () => {
console.log("== Issue Token Sample ==");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dotenv.config();

// You will need to set this environment variables or edit the following values
const connectionString =
process.env["CONNECTION_STRING"] || "<communication service connection string>";
process.env["COMMUNICATION_CONNECTION_STRING"] || "<communication service connection string>";

export const main = async () => {
console.log("== Issue Token Sample ==");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ node sendSms.js
Alternatively, run a single sample with the correct environment variables set (step 3 is not required if you do this), for example (cross-platform):

```bash
npx cross-env CONNECTION_STRING="<connection string>" node sendSms.js
npx cross-env COMMUNICATION_CONNECTION_STRING="<connection string>" node sendSms.js
```

## Next Steps
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Used in most samples. Retrieve these values from a Communication Service instance
# in the Azure Portal.
CONNECTION_STRING="endpoint=https://<resource name>.communication.azure.net/;accessKey=<key>"
COMMUNICATION_CONNECTION_STRING="endpoint=https://<resource name>.communication.azure.net/;accessKey=<key>"
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dotenv.config();

// You will need to set this environment variables or edit the following values
const connectionString =
process.env["CONNECTION_STRING"] || "<communication service connection string>";
process.env["COMMUNICATION_CONNECTION_STRING"] || "<communication service connection string>";

async function main() {
console.log("== Send SMS Message Sample ==");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ node dist/sendSms.js
Alternatively, run a single sample with the correct environment variables set (step 3 is not required if you do this), for example (cross-platform):

```bash
npx cross-env CONNECTION_STRING="<connection string>" node dist/sendSms.js
npx cross-env COMMUNICATION_CONNECTION_STRING="<connection string>" node dist/sendSms.js
```

## Next Steps
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Used in most samples. Retrieve these values from a Communication Service instance
# in the Azure Portal.
CONNECTION_STRING="endpoint=https://<resource name>.communication.azure.net/;accessKey=<key>"
COMMUNICATION_CONNECTION_STRING="endpoint=https://<resource name>.communication.azure.net/;accessKey=<key>"
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dotenv.config();

// You will need to set this environment variables or edit the following values
const connectionString =
process.env["CONNECTION_STRING"] || "<communication service connection string>";
process.env["COMMUNICATION_CONNECTION_STRING"] || "<communication service connection string>";

export const main = async () => {
console.log("== Send SMS Message Sample ==");
Expand Down

0 comments on commit 2c2b9ad

Please sign in to comment.