About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.
Setup steps on this page
Set up Key Vault parameters
Use this page to refer to certificates and secrets kept in Key Vault instead of using them directly.
Steps from Microsoft
Go to Retail and Commerce > Headquarters setup > Parameters > Key Vault parameters.
Select New and enter a name and description.
On the General tab, enter the Key Vault URL, Key Vault client and Key Vault secret key.
On the Certificates tab, select Add and enter a name, description and the Key Vault certificate secret reference.
Select Validate to check the reference and the certificate.
A reference to the certificate in the vault, in the form vault:///<SecretName>.Microsoft Learn
Common errors and fixes
Message
What to do
Validate doesn't return Validation successful
Check the Key Vault URL (the Vault URI from the key vault's overview page), the Key Vault client (the application ID of the registered app) and the secret reference in the format vault:///<SecretName>, then select Validate again. Microsoft Learn
Test checklist
Check Use advanced certificate store = Yes in System parameters for a cloud environment.
Create a record with Key Vault URL, Key Vault client and Key Vault secret key.
Add a certificate with a Key Vault certificate secret in the vault://<KeyVaultName>/<SecretName>/<SecretVersion> format.
Select Validate and check the reference and certificate are valid.
One Key Vault parameters record per Key Vault storage, with each certificate referenced as vault:///<SecretName>/<SecretVersion> and checked with ValidateLearn asks for a separate record for each Key Vault storage you use. Because certificates are cached, Learn recommends naming the secret version in the reference; without a version the system takes the active certificate with the latest expiration date.
Reversible: Key Vault URL, client, secret key and certificate references can be edited; a wrong reference breaks the integrations that use it until it is corrected. Microsoft Learn
If you change it later
If no secret version is given, the system uses the active certificate with the latest expiration date, so a renewed certificate is picked up automatically. Microsoft Learn
Technical architect
6Technical
Menu item
KeyVaultParametersChecked in Dynamics 365
Form
KeyVaultParametersChecked in Dynamics 365
Table
KeyVaultParametersShown as “KEY VAULT PARAMETERS” in Record infoKey field: NameChecked in Dynamics 365
Who can open it
1 security role. Select a role to see its duties and privileges.
To set it up or change itInformation technology manager SysServerITManagerGive people one of these roles. On this system, 1 role can open this page.Checked in Dynamics 365
Security administrator · Solution architect
7Advanced Security configuration
Each button below opens a menu item. Start from a standard security role, or from an empty one, and choose what the new role gets for each button: remove it, or an access level. Then create the file that System administration > Security > Security configuration > Data > Import reads. The file holds a copy of the role and copies of only the duties and privileges that change. Everything else stays the standard object.
This demo uses Microsoft's standard roles. To do the same on your own system, with your own roles, use the Chrome extension or the bookmark.
Information technology manager (SysServerITManager) can use 1 of these buttons. You can also give it buttons it does not have.
On your own system, the Advanced Security configuration bookmark does the same with your real roles, including your own: click a button on the live page to see who can use it and what to change.
Built from Microsoft's standard security definitions for version 10.0.49 and the buttons seen on this page in a working system. Add-ons, your own roles and later versions can differ. Beyond ERP is not affiliated with Microsoft. Buttons without a menu item, such as Post, are not listed: security roles cannot change them this way.
Developer
8Developer
Open it by URL
https://<your-environment>/?mi=KeyVaultParameters
Data migration
Load order: Key Vault parameters has no data entity in Data management, so it can't be loaded from a file or a configuration template. Enter the Key Vault URL, client, secret key and secret references by hand on this page in each environment and legal entity, then select Validate.Checked in Dynamics 365