def METHOD_NAME(department_id: Optional[str] = None,
                             report_name: Optional[str] = None,
                             opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetReportByDepartmentResult:
    """
    Gets the report for a department by report name.
    :param str department_id: Department ID
    :param str report_name: Report Name.
    """
    __args__ = dict()
    __args__['departmentId'] = department_id
    __args__['reportName'] = report_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:costmanagement/v20180801preview:getReportByDepartment', __args__, opts=opts, typ=GetReportByDepartmentResult).value
    return AwaitableGetReportByDepartmentResult(
        definition=pulumi.get(__ret__, 'definition'),
        delivery_info=pulumi.get(__ret__, 'delivery_info'),
        format=pulumi.get(__ret__, 'format'),
        id=pulumi.get(__ret__, 'id'),
        name=pulumi.get(__ret__, 'name'),
        schedule=pulumi.get(__ret__, 'schedule'),
        tags=pulumi.get(__ret__, 'tags'),
        type=pulumi.get(__ret__, 'type'))