File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
sdk/keyvault/keyvault-secrets Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ export async function main(): Promise<void> {
24
24
const client = new SecretClient ( url , credential ) ;
25
25
26
26
// Create a secret
27
+ // The secret can be a string of any kind. For example,
28
+ // a multiline text block such as an RSA private key with newline characters,
29
+ // or a stringified JSON object, like `JSON.stringify({ mySecret: 'MySecretValue'})`.
27
30
const uniqueString = new Date ( ) . getTime ( ) ;
28
31
const secretName = `secret${ uniqueString } ` ;
29
32
const result = await client . setSecret ( secretName , "MySecretValue" ) ;
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ async function main() {
24
24
const client = new SecretClient ( url , credential ) ;
25
25
26
26
// Create a secret
27
+ // The secret can be a string of any kind. For example,
28
+ // a multiline text block such as an RSA private key with newline characters,
29
+ // or a stringified JSON object, like `JSON.stringify({ mySecret: 'MySecretValue'})`.
27
30
const uniqueString = new Date ( ) . getTime ( ) ;
28
31
const secretName = `secret${ uniqueString } ` ;
29
32
const result = await client . setSecret ( secretName , "MySecretValue" ) ;
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ export async function main(): Promise<void> {
24
24
const client = new SecretClient ( url , credential ) ;
25
25
26
26
// Create a secret
27
+ // The secret can be a string of any kind. For example,
28
+ // a multiline text block such as an RSA private key with newline characters,
29
+ // or a stringified JSON object, like `JSON.stringify({ mySecret: 'MySecretValue'})`.
27
30
const uniqueString = new Date ( ) . getTime ( ) ;
28
31
const secretName = `secret${ uniqueString } ` ;
29
32
const result = await client . setSecret ( secretName , "MySecretValue" ) ;
You can’t perform that action at this time.
0 commit comments