Prerequisite
Tenant Id : contoso.onmicrosoft.com (You can find your tenant Id in you D365FO Help Page)
Storage account name: soletechsessattachments
Container Name : soletechsattachmentcontainer
“You can choose any name for storage account and container make sure you have noted and this will be used in Application parameter > Azure Blob storage“
Create storage account
- Login to www.portal.azure.com
- Click on Storage Account
![](https://docs.soletechs.com/wp-content/uploads/2022/01/att01-1024x178.png)
- Click on create
- Select required Resource group
- Define Storage account name as soletechsessattachments
![](https://docs.soletechs.com/wp-content/uploads/2022/01/att02.png)
Click on Review + Create on bottom left corner
![](https://docs.soletechs.com/wp-content/uploads/2022/01/att03.png)
- Click on create
- Wait for Deployment to complete
- Click on Go to Resource
![](https://docs.soletechs.com/wp-content/uploads/2022/01/att04-1-1024x321.png)
- Click on Containers no 1
- Click on Container no 2
![](https://docs.soletechs.com/wp-content/uploads/2022/01/att05.png)
Define name as soletechsattachementcontainer and Public access level as private(no anonymous access)
![](https://docs.soletechs.com/wp-content/uploads/2022/01/att06.png)
- Define Container name
- Created container will be listing on the page
- Verify Blob Service delete option should be disabled.
- Click on create
![](https://docs.soletechs.com/wp-content/uploads/2022/01/att07.png)
Copy the Connection string
![](https://docs.soletechs.com/wp-content/uploads/2022/01/att08-1024x795.png)
Click on Access keys
- Click on show keys
- Copy the Connection string and Save it in NotedPad
Application paramter
![](https://docs.soletechs.com/wp-content/uploads/2022/01/aat09.png)
- Enable Attachment Feature
- Define Attachment path as Attachment
Azure Blob storage
![](https://docs.soletechs.com/wp-content/uploads/2022/01/att10.png)
Create a directory in Container
- Define connection string
- Define storage account
- Define container name
- Select the enviroment
![](https://docs.soletechs.com/wp-content/uploads/2022/01/att11-1024x379.png)
- Click on Storage browser (preview)
- Click on Blob container
- Click on soletechsattachementcontainer
- Click on + Add Directory
- Name should be your Tenant Id ex: contoso.onmicrosoft.com
- Now Contoso.onmicrosoft.com directory is created
![](https://docs.soletechs.com/wp-content/uploads/2022/01/att12.png)
- Create UAT Directory in Contoso.onmicrosoft.com (Demo Case this will change for Production and other environment)
- In Application Parameter you defined your Environment is UAT in Azure Blob Storage, In that case you have to create UAT folder.
- Inside the UAT Directory Create 3 Directories
- Attachment
- Letter
- Payslip
Make sure you have defined correct environment for Azure Blob Storage. If you have Prod, UAT, Test & Dev Environments which using the attachment process you should have Prod, UAT, Test, Dev Directory in contoso.onmicrosoft.com. IF you failed to create this directory Attachment wont work.