Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[App Config] Secret reference sample update #18775

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ export async function main() {

const key = `secret${new Date().getTime()}`;

// setup
// - creates a secret using `@azure/keyvault-secrets`
// and
// - a corresponding secret reference config setting with `@azure/app-configuration`
// setup method creates
// - a secret using `@azure/keyvault-secrets`
// - and a corresponding secret reference config setting with `@azure/app-configuration`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think you can drop and

await setup(key);

console.log(`Get the added secretReference from App Config with key: ${key}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ async function main() {

const key = `secret${new Date().getTime()}`;

// setup
// - creates a secret using `@azure/keyvault-secrets`
// and
// - a corresponding secret reference config setting with `@azure/app-configuration`
// setup method creates
// - a secret using `@azure/keyvault-secrets`
// - and a corresponding secret reference config setting with `@azure/app-configuration`
await setup(key);

console.log(`Get the added secretReference from App Config with key: ${key}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ export async function main() {

const key = `secret${new Date().getTime()}`;

// setup
// - creates a secret using `@azure/keyvault-secrets`
// and
// - a corresponding secret reference config setting with `@azure/app-configuration`
// setup method creates
// - a secret using `@azure/keyvault-secrets`
// - and a corresponding secret reference config setting with `@azure/app-configuration`
await setup(key);

console.log(`Get the added secretReference from App Config with key: ${key}`);
Expand Down