Hello Chetan , Welcome to MS Q&A
Yes, you can use your code to fetch secrets from Azure Key Vault in AKS using the Azure SDK. Here is an example of how you can do this in a .NET application:
- Install the necessary NuGet packages:
- Configure your application to use Azure Key Vault:
- Set up your environment:
- Deploy your application to AKS:
This approach allows your application to directly fetch secrets from Azure Key Vault using the Azure SDK, without relying on the CSI-enabled Secrets Store provider
Reference:
https://video2.skills-academy.com/en-us/azure/key-vault/secrets/quick-create-net?tabs=azure-cli
Please let us know if any further questions
Kindly accept if it helps
Thanks
Deepanshu