Managing Azure File Shares
Hydra can manage and monitor Azure File Shares, which are typically used to store FSLogix profiles. Hydra can auto-expand/shrink Azure File Shares. It can even release file handles (locks) on FSLogix virtual disks if a user’s session was not properly logged out.
Azure File Permissions
In order for Hydra to properly interact with the Azure File Share, contributor permissions are required by the Service Principal or Managed Identity in the target tenant.
Add a File Share Configuration
File Share Configurations allow Hydra to know when to trigger alerts and auto-expand/shrink file shares to ensure both zero downtime and decreased storage costs. To add a File Share Configuration, navigate to Azure Resources → File Shares on the left-hand navigation bar:

You should see all of the File Shares that the identity has access to. Click the Settings icon and scroll down if needed. Click + Add to add the configuration:

Input the parameters below as required:
Enabled - Enables the configuration
If free space is lower than (GByte) - Triggers an alert in the top-right notifications section in Hydra if the free space is less than the configured value
Auto-Adapt - Allows Hydra to manipulate the size of the file share based on the configured values below
Keep the free space larger than (GByte) - If the free space alert above is triggered, Hydra will attempt to resize the file share to have this amount of free space
Autoshrink once a day - Hydra will attempt to shrink the share to the amount of “Keep the free space larger than” value. Hydra will only attempt this at least 24 hours since the last resizing.
Never exceed (GByte) - The absolute maximum value that Hydra will attempt to resize the file share
Click Save after inputting the necessary parameters. The configuration is now active.

Managing File Handles
Hydra can also release file handles, or locks, on the file share. This can be handy for releasing locks on VHDs if a session host has not properly released the lock after logoff, potentially causing the user’s subsequent login to hang.
To show the File Handles table, click on the Usage Percentage graph in the Usage column of the targeted file share:

This will display the File Handles table at the bottom of the page. Scroll down if necessary, select the file in scope, and click the Release handle button to force the release. Ensure the user is completely logged off before doing this:
