BeyondERP.Newsletter
Menu

Setup page · Retail and Commerce

Key Vault parameters

A setup page that links the system to an Azure Key Vault and lists the certificates and secrets stored there.

Read the guide Back to Retail and Commerce

Used by
Information technology manager
Business process
Administer system features
Menu item
KeyVaultParameters
Main table
KeyVaultParameters
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Key Vault certificate reference validates”, to confirm this setup in your own test environment.
Show what matters for
PAGE GUIDEWhat the page does and how to use it9 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA setup page that links the system to an Azure Key Vault and lists the certificates and secrets stored there.
What you do hereUse this page to refer to certificates and secrets kept in Key Vault instead of using them directly.
ExampleFor example, each legal entity that connects to an external tax solution provider needs its own Key Vault parameters record.
Key Vault parameters page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

Business processAdminister system features
Menu pathRetail and Commerce › Headquarters setup › Parameters › Key Vault parameters
Set up firstSystem parameters Microsoft Learn
Used next byOnline stores (operating unit number used for e-commerce secrets) Microsoft Learn Set up Certificate profiles
Related pagesCommerce shared parameters Microsoft Learn
End user · Functional consultant

3How to do it

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

  1. Go to Retail and Commerce > Headquarters setup > Parameters > Key Vault parameters.
  2. Select New and enter a name and description.
  3. On the General tab, enter the Key Vault URL, Key Vault client and Key Vault secret key.
  4. On the Certificates tab, select Add and enter a name, description and the Key Vault certificate secret reference.
  5. Select Validate to check the reference and the certificate.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansTable column
Key Vault URLThe default address of the key vault.Microsoft Learn Url
Key Vault clientThe client ID of the Microsoft Entra application used to sign in to the key vault.Microsoft Learn AppClientId
Key Vault secret keyThe secret of that Microsoft Entra application.Microsoft Learn
Key Vault certificate secretA reference to the certificate in the vault, in the form vault:///<SecretName>.Microsoft Learn

Common errors and fixes

MessageWhat to do
Validate doesn't return Validation successfulCheck 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

  1. Check Use advanced certificate store = Yes in System parameters for a cloud environment.
  2. Create a record with Key Vault URL, Key Vault client and Key Vault secret key.
  3. Add a certificate with a Key Vault certificate secret in the vault://<KeyVaultName>/<SecretName>/<SecretVersion> format.
  4. Select Validate and check the reference and certificate are valid.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Set up Key Vault parametersOne 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.Should certificate references name a secret version?Typing the secret reference in the wrong format or forgetting Validate: the reference must start with vault:// and name at least the secret, and only Validate shows that the reference and the certificate are good.Test: Key Vault certificate reference validates

Feature management and licence

Licence or add-inIn this system 1 role can open this page, among them Information technology manager.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: each legal entity has its own records. Microsoft data model
Can it be undoneReversible: 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 laterIf 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 itemKeyVaultParameters Checked in Dynamics 365
FormKeyVaultParameters Checked in Dynamics 365
TableKeyVaultParametersShown 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.

  • RoleInformation technology managerSysServerITManager
    • DutyMaintain system settingsSysServerSettingsMaintain
      • PrivilegeMaintain KeyVault parametersKeyVaultParametersMaintain
Checked in Dynamics 365
Roles to set it up and use itTo 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 the page

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 URLhttps://<your-environment>/?mi=KeyVaultParameters
Data migrationLoad 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
Table definitionKeyVaultParameters columns and relations Microsoft data model
Everyone

9Sources