Hello Subhash Kumar Mahato,
Thanks for your question.
AKV is an excellent solution for application secrets. I would recommend don't store user secrets in AKV, but do consider using Key Vault for encrypting the secrets you store in your database.
https://learn.microsoft.com/en-us/azure/key-vault/general/overview
However if you must. I would suggest following a solution here:
- On the Create a secret page, do the following:
- Upload options: Select Manual.
- Name: Enter the name of the secret. For example, you can use Username for the username secret and Password for the password secret.
- Secret value: For the username value (in the format domain\username), enter the domain account username. For the password value, enter the domain account password. For example, if the domain is contoso.com, the username should be in the format contoso\username.
- Leave the Content type (optional), Set activation date, Set expiration date, Enabled, and Tags areas as default. Select Create to create the secret.
The above is documented here for a similar implementation https://learn.microsoft.com/en-us/system-center/scom/store-domain-credentials-in-key-vault?view=sc-om-2022
This takes advantage of using the username and password.
Please let me know if you have further questions
You can mark it 'Accept Answer' if this helped.