Objective
Enable secure Azure Blob SAS Token usage in D365 F&O without storing connection strings or storage keys directly in the system.
Prerequisite
- Admin access to D365 F&O and Azure Portal
- Azure Blob Storage Key (not the connection string)
Setup Sequence
- Create Azure AD Application
- Create Azure Key Vault
- Create Secret Key in Key Vault
- Configure Key Vault Parameters in D365 F&O
- Enable SAS Token in Self Service
Create Azure AD App
- Login to Microsoft Azure
- Click on Microsoft Entra ID
- Click on App Registration
- Click on New registration
- Define the name Azure Key Vault App
- Supported account types – Single Tenant only
- Click on Register
- Copy the Application Client Id and Save it in Notepad
- Under the Manage click on Certificate & Secrets
- Click on New client secret
- Define the Name and Expires – 730 days
- Click on Add
- Save the Value data from the Client Secret Screen
- Paste this Value in same Notepad
Create Azure Key Vault
- Login to Microsoft Azure
- Search Key vaults on Search resource bar
- Click on Create
- Define your Subscription
- For Resource Group Click on Create new
- Define Name as AzureBlobKeyVault
- Click on OK
- Define Key vault name as AzureBlobKeyVault
- Region as East US
- Pricing tier Standard
- Leave the remaining option as original
- Click on Next
- On Permission Model
- Select Vault access policy
- At the bottom of the page under Access Policies
- Click on Create
- Under Secret Permission
- Select only Get & Llist
- Click on Next
- Under Secret Permission

- On the Principal
- On Search bar type the Azure App name which you created on Step 1.4.a
- Azure Key Vault App
- Select the matching one
- Click on Next
- On Search bar type the Azure App name which you created on Step 1.4.a
- On Application
- Click on Next
- Click on Create
- Now the screen looks like below image
- Click on Review + create

- Click on Create
- Wait for few mins to complete the deployment
- Once completed Click on Go to Resource
- In Overview Copy the Vault URI and Paste it in the notepad
Create Secret Key
- In Key Vault → Objects → Secrets
- Click Generate/Import
- Upload Options: Manual
- Name: BlobKey
- Secret Value: Azure Blob Storage Key
- Enable: Yes
- Click Create
Configure Key Vault in D365 F&O
- Navigate to: System Admin → Setup → Key Vault Parameters
- Click New
- Name: AzureBlobKeyVault
- Vault URI: from Step 2
- Key Vault Client ID: from Step 1
- Key Vault Client Secret: from Step 1
- Under Secrets → Add
- Name: BlobKey
- Secret Value:
vault://AzureBlobKeyVault/BlobKey - Secret Type: Manual
- Click Save
- Click Validate → Expect Validation Successful

Enable SAS Token in Self Service
- Go to: Self‑Services → Setup → Application Parameter → Azure Blob Storage
- Under Blob SAS:
- Key Vault Name
- Key Vault Secret
- SAS URL Expiry (minutes): 1
- Enable SAS Token URL: Yes
- System prompt: “This feature will clear the connection string data in the system. Do you want to continue?”
- Click Yes
- Click Save

