File tree Expand file tree Collapse file tree
sdk/keyvault/keyvault-secrets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ export async function main(): Promise<void> {
2424 const client = new SecretClient ( url , credential ) ;
2525
2626 // 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'})`.
2730 const uniqueString = new Date ( ) . getTime ( ) ;
2831 const secretName = `secret${ uniqueString } ` ;
2932 const result = await client . setSecret ( secretName , "MySecretValue" ) ;
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ async function main() {
2424 const client = new SecretClient ( url , credential ) ;
2525
2626 // 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'})`.
2730 const uniqueString = new Date ( ) . getTime ( ) ;
2831 const secretName = `secret${ uniqueString } ` ;
2932 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> {
2424 const client = new SecretClient ( url , credential ) ;
2525
2626 // 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'})`.
2730 const uniqueString = new Date ( ) . getTime ( ) ;
2831 const secretName = `secret${ uniqueString } ` ;
2932 const result = await client . setSecret ( secretName , "MySecretValue" ) ;
You can’t perform that action at this time.
0 commit comments