Not able to add secrets to the azure key vault

Mani 25 Reputation points
2024-08-30T09:16:49.0933333+00:00

Hi,

I have created key vault in private network and able to "nslookup" to the private end point of key vault from from my window VM. Both windows VM and azure key vault in same virtual network and same subnet. I have tried to add secrets to the key vault from azure portal but facing the below error.

I can not add secrets any more from the azure portal since key vault in private network ? if yes, what are the other options we have for this?
Error Details:
The connection to data plane failed. Please refresh and try again. If Private Links are enabled on the vault and the issue persists please follow the steps in the following link https://go.microsoft.com/fwlink/?linkid=2156688 .

Regards,

Mani

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,258 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 10,191 Reputation points
    2024-08-30T19:49:11.31+00:00

    Hello Mani,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you have tried to add secrets to the key vault from azure portal but facing error as stated and both windows VM and Azure Key Vault are in the same virtual network and same subnet.

    Since your Azure Key Vault is in a private network, definitely it will happen with issues accessing it directly from the Azure portal. To resolve this error use alternative options to add secrets to your Key Vault like Azure CLI or PowerShell to add a secret. For example:

    az keyvault secret set --vault-name <YourKeyVaultName> --name <SecretName> --value <SecretValue>
    
    Set-AzKeyVaultSecret -VaultName "<YourKeyVaultName>" -Name "<SecretName>" -SecretValue "<SecretValue>"
    

    Kindly use the additional resources by the right side of this page for more information and use this link https://learn.microsoft.com/en-us/azure/key-vault/general/private-link-service to learn more on how to Integrate Key Vault with Azure Private Link.

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.

    Best Regards,

    Sina Salam

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.