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

Announcements

No record found.

News and Announcements icon
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,813 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 660

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 654 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 489

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans