Home > database >  How to change Key Vault Account in Visual Studio as a Connected service
How to change Key Vault Account in Visual Studio as a Connected service

Time:11-23

I have succesfully connected an ASP.NET (.Net Framework 4.7.2) web application to a demo Azure Key Vault using a "quick" set up using the following links:

enter image description here

But is the red highlighted area in the picture above, the links take me to the azure key vault web page. So, there is not a configuration page within Visual Studio to change the azure suscription and key vault. In the application there is only a reference to the key vault in the Web.Config file. The connectedService.json file does not contain any useful information either.

I need to read the secrets from the web.config and not from anyther place. I have even written a method to read the secrets overriding the web.config. But this not aceptable, since the application architecture reads all the connections from the web.config file

Any ideas, please?.

CodePudding user response:

On Work around

You can access different subscription for any of your accounts directly

1) Server Explorer by right-clicking on the Azure node, choosing Manage and Filter Subscriptions, enter image description here

2) You get the list all subscription select the subscription. and select the subscription for your application

enter image description here

To Move the key vault to another subscription refer this document:

  • Related