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 :
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
    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
    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

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 171 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 83

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans