Terraform Use Case

I am wondering if Terraform can be used in the following scenario:

(A) We have an Azure File Share which has grown rapidly
(B) We need to move files from Azure File Share to Azure Block Storage with parameters on moving files/containers older than X days or greater than Y size

Would it be easier/more maintainable writing an Azure Function to do the same job?