Skip to content

Commit

Permalink
Key Vault secret - add comment to sample (#20200)
Browse files Browse the repository at this point in the history
  • Loading branch information
diberry committed Feb 3, 2022
1 parent 1a8a7c4 commit 1535c63
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/keyvault/keyvault-secrets/samples-dev/helloWorld.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export async function main(): Promise<void> {
const client = new SecretClient(url, credential);

// Create a secret
// The secret can be a string of any kind. For example,
// a multiline text block such as an RSA private key with newline characters,
// or a stringified JSON object, like `JSON.stringify({ mySecret: 'MySecretValue'})`.
const uniqueString = new Date().getTime();
const secretName = `secret${uniqueString}`;
const result = await client.setSecret(secretName, "MySecretValue");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ async function main() {
const client = new SecretClient(url, credential);

// Create a secret
// The secret can be a string of any kind. For example,
// a multiline text block such as an RSA private key with newline characters,
// or a stringified JSON object, like `JSON.stringify({ mySecret: 'MySecretValue'})`.
const uniqueString = new Date().getTime();
const secretName = `secret${uniqueString}`;
const result = await client.setSecret(secretName, "MySecretValue");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export async function main(): Promise<void> {
const client = new SecretClient(url, credential);

// Create a secret
// The secret can be a string of any kind. For example,
// a multiline text block such as an RSA private key with newline characters,
// or a stringified JSON object, like `JSON.stringify({ mySecret: 'MySecretValue'})`.
const uniqueString = new Date().getTime();
const secretName = `secret${uniqueString}`;
const result = await client.setSecret(secretName, "MySecretValue");
Expand Down

0 comments on commit 1535c63

Please sign in to comment.