1. Knowledge Base
  2. Deploy the Cloud & NAS Agent
  3. Scan Microsoft365, Dropbox, and Google Cloud Services

Deploy the Cloud Agent on Azure VM

Learn how to deploy the Actifile agent on an Azure virtual machine for continuous cloud storage scanning.

Prerequisites

Before you begin, ensure you have the following:

1. An active Azure account with a resource group where the virtual machine (VM) for the Actifile agent will be deployed. For more information, refer to the Azure documentation.

2. PowerShell version 7 or higher installed on your local machine. To check your current version, run this command:

$PSVersionTable

Check the PSVersion line to confirm your version. If you need to update, follow the instructions here.

unnamed (2)-3

Steps

Step 1. Download the configuration files for the apps you wish to scan. This article explains how to generate the files.

 

Step 2. Download the script to deploy the agent on a virtual machine. Unzip the folder to an accessible location.

 

Step 3. Open PowerShell and navigate to the folder containing the actifile-cloud-scanner.ps1 script. Replace the placeholder with your actual path:

  • YOUR_SCRIPT_PATH > the path to the folder containing the actifile-cloud-scanner.ps1 file.
cd YOUR_SCRIPT_PATH

Example:

unnamed (1)-3

Step 4. Depending on the cloud app you are scanning, run one of the following commands. Replace the placeholder with your value.

  • YOUR_CONFIG_FOLDER_PATH > the path to the folder containing the configuration file you generated in step 1.

Microsoft OneDrive or SharePoint

./actifile-cloud-scanner.ps1 -Command Deploy -OneDriveConfigFile YOUR_CONFIG_FOLDER_PATH/actifile_onedrive.conf

Microsoft Outlook:

./actifile-cloud-scanner.ps1 -Command Deploy -OutlookConfigFile YOUR_CONFIG_FOLDER_PATH/actifile_outlook.conf

Google Drive:

./actifile-cloud-scanner.ps1 -Command Deploy -GoogleDriveConfigFile YOUR_CONFIG_FOLDER_PATH/actifile_googledrive.conf

Gmail:

./actifile-cloud-scanner.ps1 -Command Deploy -GoogleMailConfigFile YOUR_CONFIG_FOLDER_PATH/actifile_googlemail.conf

 

You can run the command for all desired apps simultaneously by adding parameters one after the other:

./actifile-cloud-scanner.ps1 -Command Deploy -GoogleDriveConfigFile YOUR_CONFIG_FOLDER_PATH\actifile_googledrive.conf -OneDriveConfigFile YOUR_CONFIG_FOLDER_PATH\actifile_onedrive.conf -OutlookConfigFile YOUR_CONFIG_FOLDER_PATH\actifile_outlook.conf -GoogleMailConfigFile YOUR_CONFIG_FOLDER_PATH\actifile_googlemail.conf

Example:

image-56-1024x93

 

Note: If you encounter the error message actifile-cloud-scanner.ps1 is not digitally signed, it means that the system’s execution policy blocks the script. To bypass this restriction, run this:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

 

Step 5. If this is your first time deploying an Azure VM via PowerShell, you might be prompted to install the required modules.  Copy and execute the suggested commands, then rerun the deployment command from the previous step. 

unnamed (3)-2

Step 6. A pop-up window will ask you to log in to your Azure account. Enter your credentials.

 

Step 7. Choose a resource group you created in step 1 and type y to confirm the deployment. If necessary, choose a password or hit enter to continue. Then, wait for the VM to be deployed

image-57-1024x201

 

Step 8. Once the deployment is complete, the VM’s IP address will be displayed in PowerShell:

Step 9. Open the Actifile portal and navigate to Deployment > Installed Devices. Each scanned cloud application will appear in the list as a separate device. Verify that all desired applications are listed.

Old interface:

image-19 (1)

New interface:

image-png-Feb-12-2025-11-53-17-1275-AM-1

 

The Actifile agent is now scanning your cloud storage on an ongoing basis.