Using a Microsoft Azure file share

This section provides instructions for connecting the ABBYY FlexiCapture Application Server to a file share in Microsoft Azure.

Note: It is assumed that a storage account has already been created in Microsoft Azure Files and is available for use by ABBYY FlexiCapture.

  1. On the Azure portal, go to your storage account (abbyystorage in this example) and click Files in the storage account pane.

  1. Create a new file share in your storage account by specifying its name (fcstorage in this example) and a space quota as required.

  1. Open the created file share and click Connect.

  1. Copy the cmdkey command to the Clipboard.

  1. Log on to the virtual machine with the FlexiCapture Application Server as a system user with permissions to access the FlexiCapture services (fcuser in this example), open the command line prompt, and paste and execute the cmdkey command from the Clipboard. This will add the file share credentials to the Windows Credential Manager.

  1. Open Windows Explorer and make sure that the user can access the file share.

  1. Open the Internet Information Services (IIS) Manager, select the FlexiCapture application pool, and click Advanced Settings.
  2. Change the pool identity to the FlexiCapture user account with the required permissions, set Load User Profile to True, confirm the changes by clicking OK, and recycle the application pool.
  3. In the Administration and Monitoring Console, select the Use external file storage option and specify the path to the file share in Microsoft Azure.

Using Azure Key Vault to Connect to Microsoft Azure Files

Azure Key Vault is a cloud service for securely storing secrets, such as API keys, passwords, certificates, etc. The service enables Azure subscribers to protect their sensitive data used by cloud applications and services. You can create and manage key vaults through the Azure portal (see the Microsoft documentation for details).

To set up a connection to Azure Files:

  • On the Azure portal
  1. Set up virtual machines for your ABBYY FlexiCapture Application Servers.
    Important! Your virtual machines with the Application Server installed must be registered in Azure Active Directory. For detailed instructions on how to create and set up virtual machines, see the Microsoft documentation.
  2. Create a new key vault.
    Under Permission model, select Azure role-based access control.
  3. To be able to save and view secrets, add the Key Vault Secrets Officer role for your account and the Key Vault Secrets User role for the virtual machine objects. For detailed instructions on how to grant permissions to virtual machines, see the Microsoft documentation.
  4. Add your secret (i.e. your access key) for your Azure Storage account to the key vault. For detailed instructions on how to add a secret to a key vault, see the Microsoft documentation.
    Important! To connect to Azure Files, the name of your secret must be the same as your storage account name.

  • On each Application Server

Configure your system account to access Azure Files. To do this:

  1. Save the following PowerShell script on each virtual machine where the Application Server is installed:

    Show PowerShell script

The script accepts the following two parameters as input:

  • The path to the root of the network Azure folder, for example: “\\<name of Azure Storage account>\<name of network folder>”.
  • The URI of the key vault storing the access key for your Azure Storage account.
    Your can copy the URI from the Vault URI field on the Overview tab on the Azure portal.

Sample string for running the scripts: powershell.exe <path to file with script> -share \\<name of Azure Storage account>\<name of network folder> -uri https://<name of Azure key vault>

  1. To run the script, create a task in Task Scheduler that will be triggered by a system startup event. The task must be run under the System, Network Service, or Local Service user account. The same account must be used to run the IIS application pool.
  2. Configure the IIS service to be started after the connection script is executed. To do this, open the World Wide Web Publishing Service Properties dialog box, and select Automatic (Delayed Start) from the Startup type drop-down list on the General tab.
  3. Restart the Application Server.

25.05.2023 7:55:02

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.