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

Conversation

HarshaNalluru
Copy link
Member

@HarshaNalluru HarshaNalluru commented Nov 22, 2021

Fixes #18669

The main change is that the secretId in the sample is updated from random_string to https://vault_name.vault.azure.net/secrets/random_string

  • Updated the generated samples too
  • Leveraging parseKeyVaultSecretIdentifier to parse the secretId to get the name and vault url
  • This makes the sample consistent with .NET
  • Did some refactoring as the sample became huge

@ghost ghost added the App Configuration Azure.ApplicationModel.Configuration label Nov 22, 2021
@HarshaNalluru HarshaNalluru marked this pull request as ready for review November 22, 2021 20:20
@HarshaNalluru
Copy link
Member Author

@diberry - it doesn't let me add you as a reviewer, please check the PR and let me know if this is good.

// - 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

@HarshaNalluru HarshaNalluru enabled auto-merge (squash) November 22, 2021 22:25
@HarshaNalluru HarshaNalluru merged commit ac23a73 into Azure:main Nov 22, 2021
@HarshaNalluru HarshaNalluru deleted the harshan/issue/app-config/18669 branch November 22, 2021 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Configuration Azure.ApplicationModel.Configuration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sample bug: @azure/app-configuration @azure/keyvault-secrets issue with secretClient.getSecret
2 participants