Set Up Azure Files as Cloud Storage
This chapter describes how to connect your Business Central (using BeyondCloudConnector) to Azure Files.
Connecting Azure Files allows you to directly access and edit files stored in the cloud without leaving Business Central.
Note
Adminstator Privileges required in Microsoft Azure
The following descriptions require administrator privileges in Microsoft Azure. To set up the connection, you must have permission to create storage accounts and containers, and to create SAS tokens. If you need help with setup or have any questions in this regard, please feel free to contact us at
info@beyondit.gbmh.
Please download the file from the link below:
Download PDF File
Follow the steps below to connect Azure Files in Business Central:
- Create Storage Account in Microsoft Azure
- Generate Shared Access Signatures
- Connect BeyondCloudConnector with Azure Files in Business Central
Optional (if you already have files stored in Azure Files):
Create Storage Account in Microsoft Azure
This section describes how to create a storage account in Microsoft Azure. The storage account provides a unique namespace for your Azure storage data that can be accessed from anywhere in the world using HTTP or HTTPS. Data in your storage account is persistent and highly available, secure, and extremely scalable.
- Open the website http://www.portal.azure.com/ and log in.
- In the Microsoft Azure menu bar, click Storage Accounts.
- Click Create in the menu bar.
- Complete the required information to create a new storage account. We recommend that you name the storage account beyondcloudconnector. Since storage account settings depend largely on your organization's policies, we do not provide any values. For more information about storage account settings and how to create a storage account, see the Microsoft Azure Help chapter Create a storage account.
- For the storage account, click Endpoints under the Settings menu item.
- Copy the value for the File Service and enter it in the PDF file under the Account URL field.
- Create a file share for the storage account.
- Enter the name of the created file share in the PDF file under the Share Name field.
You have created a new storage account with a container. Two Shared Access Signatures (SAS) are still missing to set up the cloud storage. The SAS are created under the Generate Shared Access Signatures section.
Generate Shared Access Signatures
This section describes how to create the two Shared Access Signatures (SAS) to set up Azure Files for BEYOND CloudConnector.
- Open the website http://www.portal.azure.com/ and log in.
- In the Microsoft Azure menu bar, click Storage Accounts.
- Select the storage account that you created in the Create Storage Account in Microsoft Azure step.
- Click Shared Access Signature in the menu bar under the Security + Networking section.
- Under the Allowed Permissions section, enable all permissions for the SAS.
- Generate the SAS and enter it in the PDF document under the SAS Token field.
- Then generate another SAS. For this SAS, clear all the check boxes under the Allowed Services section except for the Read permission.
- Copy the SAS (read permissions only) string into the PDF file in the Read only SAS Token field.
You have created the SAS.
Connect BeyondCloudConnector with Azure Files in Business Central
This section describes how to connect Azure Files via BeyondCloudConnector in Microsoft Business Central.
To connect Azure Files via the BeyondCloudConnector extension in Microsoft Dynamics 365 Business Central, proceed as follows:
- Open your Business Central and the PDF file with the collected data.
- From the role center, open the search function (ALT+Q) .
- Search for Cloud Applications and click on the corresponding search result.
- The Cloud Applications page is displayed.
- To connect Azure Files to your Business Central, click New in the menu bar.
- The Cloud Application page is displayed.
- In the Code field, specify the value Azure Files.
- In the Application Type field, select Azure Files from the dropdown menu.
- In the Description field, you can enter a description for the new cloud application.
- Use the File Deletion Allowed slider to control whether files stored in the cloud can be deleted via Business Central.
- Open the Azure Files setup PDF file that you filled with information in the previous sections and transfer the values to the appropriate fields in Business Central.
You have connected Azure Files to your Business Central. If you already have files stored in Azure Files, you can import them using a JSON file for use with BeyondCloudConnector. For more information, see the Import Files from Azure Files section.
Import Files from Azure Files
This section describes how to import existing files from Azure Files into Business Central.
This feature is supported for Azure Files only. Note that no cloud storage must be set up yet for importing the files.
To import files from Azure Files into your Business Central, do the following:
- Open your Business Central.
- From the role center, open the search function (ALT+Q) .
- Search for Cloud File Import Entries page and click the appropriate search result.
- The Cloud File Import Entries page is displayed.
- Click Scan Cloud Storage in the menu bar.
- The Edit - Scan Cloud Files... window is displayed.
- To import the files from Microsoft Azure, you need to edit a JSON file (beyondcloudconnector.json). Download the sample file by clicking Download Example Json.
- Open the JSON file in Visual Studio Code. If you don't have Visual Studio Code installed, get the latest version from this link: Download Visual Studio Code.
- Press CTRL+SHIFT+P to open the command menu of Visual Studio Code and type Format Document. Confirm the command with Enter.
- The JSON file is formatted. Complete the mappings. You can see the following from the files and mappings specified in the sample file:
- The Invoice.pdf file is located in the root directory in Azure Files just like the JSON file. The Invoice.pdf file is assigned to customer 12008 and vendor 70001.
- The file Shipment.pdf is stored in the directory Shipments and is assigned to customer 12008 and vendor 70001.
- The file ProfilePicture.jpg is stored in the directory Images and is assigned to the customer 12008 and the vendor 70001.
If you need help importing files from Azure Files or have any questions in this regard, please feel free to contact us at info@beyondit.gbmh.
- Save the JSON file under the name beyondcloudconnector.json in the root directory of the Azure Files storage.
- In Business Central, under the Cloud Application Code drop-down menu, select the appropriate Azure Files cloud application.
- Click OK.
- The files are imported from Azure Files and the appropriate mappings are made in Business Central.
You have successfully connected Azure Files to Microsoft Dynamics 365 Business Central.
For a complete setup, you still need to define the tables on which you want the dropzones to appear for storing files from Business Central in Azure Files. For more information about setting up Dropzones, see the Set Up Dropzone chapter.
You can also set up automatic report archiving. For more information, see the chapter Set Up Report Archive.