The new docs.trellix.com features a modernized UI and AI-powered conversational search. Content is currently available in English, with additional languages launching in early November 2026. We hope you enjoy the updated experience.

Creating OneDrive storage using the CLI

Prev Next

To create OneDrive storage for the File Protect appliance using the CLI:

  1. Enable the CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. Generate OneDrive admin consent authorization and paste the URL generated from the authorize command into a Web browser. Copy the tenant ID value for Step 3.

    hostname (config) # fmps o365 authorize
    
    Paste the following URL in your browser and approve the app's access.
    Copy the value of 'tenant=' and use with cli:
    fmps o365 cvonnect tenant-id*	
    https://login.microsoftonline.com/common/adminconsent?redirect_uri=https%3A%2F%2                                           Fwww.fireeye.com&client_id=49b9606f-50dd-4ee1-b080-70e10cb855d0	

    Below is a sample of an admin consent containing a tenant= property value retrieved from the redirect URL in the Web browser.

    FX_OneDrive_tenant-id_scap.png
  3. Get an access token for API communication for the tenant ID retrieved from Step 2.

    hostname (config)# fmps o365 connect tenant-id <OneDriveTenantID>
  4. Enter a unique name for the OneDrive storage and the OneDrive quarantine folder location.

    hostname (config) # fmps storage create o365 name <OneDriveStorageName> app onedrive email <AdminEmail>
    OneDrivestorage connected successfully.
  5. View your OneDrive storage configuration.

    hostname (config) # show fmps storage name MyOneDriveStorage
    Storage type: o365
    
     Name:             MyOneDriveStorage
     App:              onedrive
     Quarantine Email: admin@fireeye.com
     Status:           Office 365 configured and connected 
  6. Save your changes.

    hostname (config) # write memory