web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Best way to store Azure Key/Secret

(0) ShareShare
ReportReport
Posted on by 30

Hello.

I have a on prem C# console application which connects to the APIs of the Dynamics 365 Finance. 

In order to make the connection, we will need the Tennent id, client id, secret and etc. However, we would like to store these values especially the secret in a very secure way. We tried it in machine.config. But now trying to store in Azure Key vault | Secret. 

I used what is suggested in this article: It works perfectly since I log in using my credentials on my dev machine for authentication.

https://docs.microsoft.com/en-us/azure/key-vault/secrets/quick-create-net?tabs=azure-cli

How can this be setup in production when the console app is a scheduled window task? e.g. do I use a service account for authentication? Do I have to login every time especially after the machine is rebooted?

If storing the secret, client id, tenant id is not necessary in Azure key vault, what would you suggest?

Thanks in advance!

I have the same question (0)
  • Suggested answer
    huijij Profile Picture
    19,811 on at

    Hi wandal,

    Thanks for your sharing,please post on the Azure forum for further help:

    techcommunity.microsoft.com/.../Azure

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans