def METHOD_NAME(mount_type, mount_data):
    if mount_type.lower() != "nfs" and mount_type.lower() != "azurefiles":
        print("Expected first arg to be either 'nfs' or 'azurefiles'")
        print_help()
        exit(1)
    if mount_data == "":
        print(
            """Expected second arg to be the mounting data. For NFS, this should be a CSV of IPs/FQDNS for the NFS servers with NFSExported dirs. 
                For example, '10.20.0.1:/folder1/nfsfolder2,10.20.0.1:/folder1/nfsfolder2'
            For azure files this should be the azure files connection details."""
        )
        print_help()
        exit(2)
    print("Mounting type: {}".format(sys.argv[1]))
    print("Mounting data: {}".format(sys.argv[2]))
    mount_point_permissions = 0o0777  # Todo: What permissions does this really need?
    primary_mount_folder = "/media/primarynfs"
    seconday_mount_folder_prefix = "/media/secondarynfs"
    fstab_file_path = "/etc/fstab"
    try:
        # Create folder to mount to
        if not os.path.exists(primary_mount_folder):
            os.makedirs(primary_mount_folder)
            os.chmod(primary_mount_folder, mount_point_permissions)
        # Make a backup of the fstab config incase we go wrong
        shutil.copy(fstab_file_path, "/etc/fstab-mountscriptbackup")
        # Clear existing NFS mount data to make script idempotent
        remove_lines_containing(fstab_file_path, primary_mount_folder)
        remove_lines_containing(fstab_file_path, seconday_mount_folder_prefix)
        if mount_type.lower() == "azurefiles":
            mount_azurefiles(fstab_file_path, mount_data, primary_mount_folder)
        if mount_type.lower() == "nfs":
            mount_nfs(fstab_file_path, mount_data, primary_mount_folder, mount_point_permissions)
    except IOError as e:
        print("I/O error({0})".format(e))
        exit(1)
    except:
        print("Unexpected error:{0}".format, sys.exc_info())
        raise
    print("Done editing fstab ... attempting mount")
    def mount_all():
        subprocess.check_call(["mount", "-a"])
    retryFunc("mount shares", mount_all, 100)