How to connect Azure Key Vault to C# Windows Service with app.config

1.1k Views Asked by At

How do I connect Azure Key Vault to C# windows Service application using visual studio? I am using VS 2019 and .NET Framework 4.7.2.

There is no service dependencies option under connected service where I usually find Azure Key Vault for the Web services.

This is what it looks like for Web services

But no such options available for Windows service

1

There are 1 best solutions below

3
ShrutiJoshi-MT On

Try with these steps

1. choose Add > Connected Service .Click on + The Connected Service page appears with services you can add to your project.

enter image description here

2. choose Azure Key Vault and click Next.

enter image description here

3. Select the subscription you want to use, and then choose a existing Key Vault and click Finish

enter image description here

For more details refer this document