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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

DN365 with Azure Key Valut

(0) ShareShare
ReportReport
Posted on by 45

Hi,

I have a requirement to use the Azure Key vault inside a CE plugin. The idea is to get some values that are stored in the Key vault and use it in the Plugin.

I been trying the example below. The Plugin is registered and it cast the error message "Missing AppAuthentications.dll", However, I am referencing the necessary dlls and using ILMerge to merge it with the plugin dll.

  var serviceTokenProvider = new AzureServiceTokenProvider();

                        var keyVaultClient =
                            new KeyVaultClient(
                                new KeyVaultClient.AuthenticationCallback(serviceTokenProvider.KeyVaultTokenCallback));

                        var secretUri ="keyvaulturl";

                        SecretBundle secretValue;

                        try
                        {
                            secretValue = keyVaultClient.GetSecretAsync(secretUri).Result;

I have the same question (0)
  • Suggested answer
    Mimi Yoshida Profile Picture
    Microsoft Employee on at

    Let me suggest you use a Microsoft Power Automate CI/CD pipeline and the Plugin Secure Configuration. Microsoft Power Automate now have access to Azure Key Vault, so you can make a Microsoft Power Automate that will read secrets from Azure Key Vault and then update your plugin's secure configuration with that secret.

    That secure configuration will then be made available to your plugin via its constructor as a string that contains your Azure Key Vault secret.

    docs.microsoft.com/.../

  • Diam Profile Picture
    45 on at

    Hi Mamina,

    Thank you for you response.

    Do you mean the Power Automate will update the secure Configuration?

    I removed the Key vault dlls for now and stored the values in the Plugin Secure Configuration manully. It is just an service bus endpoint. Which I need to get it via key vault.

  • Mimi Yoshida Profile Picture
    Microsoft Employee on at

    Hi Diam,

    Need to verify the error and collect info regarding  your plugin. I recommend you to create a support ticket for troubleshooting if the issue is not resolved.

    In general, you can have an Azure DevOps task that can retrieve the secret you need from Azure Key Vault. After the solution that contains the plugin that has the secret is imported into CRM, you can then read in that secret obtained from Azure Key Vault and invoke APIs that will set the secure configuration on your plugin.

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 151

#2
ManoVerse Profile Picture

ManoVerse 149 Super User 2026 Season 1

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 66 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans