Function app doesn’t show Logs information after being deployed to the Azure Portal but it shows them when running it locally

I have created and deployed a group of function apps (Blob and Time triggered) and they are deployed on the Azure Portal, it all seems fine locally but I have noticed that when I look at the logs on the portal (App Insights), I can only see 2 entries and the function finishes running in few miliseconds which I find a bit estrange as locally it takes more time to complete, but I can’t find the reason for this (I have got many entries throughout the code).

Code example:

  [Function("TeamLinkDepartmentFeed")]
  public async Task Run([TimerTrigger("%ScheduleTriggerTime%")]
  TimerInfo timer, FunctionContext context)
  {
  var logger = context.GetLogger(nameof(TeamLinkDepartmentFeed));
  try
  {
      logger.LogInformation($"C# Timer trigger TeamLinkDepartmentFeed function executed at: {DateTime.Now}");
      var graphService = new GraphService(logger);
      Instant instant = SystemClock.Instance.GetCurrentInstant();
      Stopwatch stopWatch = new Stopwatch();
      stopWatch.Start();

      var departmentListId = Environment.GetEnvironmentVariable("DepartmentListId");
      var sharepointSiteId = Environment.GetEnvironmentVariable("SharepointSiteId");
      List<User> users = await graphService.ExtractDepartmentFeedFromEntraIdAsync();
      long azureElapsed = stopWatch.ElapsedMilliseconds;
      logger.LogInformation(
          $"Retrieved {users.Count} from AzureAD.  That took {azureElapsed / 1000} seconds @ {DateTime.Now}");
      List<Department> departments = ConvertGraphUsersToDepartments(users, instant, logger);

      List<Department> departmentsWithActionSet = await graphService.SetDepartmentActionByCheckingExistingRecords(departments, departmentListId, sharepointSiteId);
      await UpdateDepartmentListAsync(departmentsWithActionSet, graphService, logger, sharepointSiteId, departmentListId);

      logger.LogInformation($"Department feed has been updated,  That took {(azureElapsed) / 1000} seconds - total {stopWatch.ElapsedMilliseconds / 1000} seconds @ {DateTime.Now} function completed successfully");
  }
  catch (Exception ex)
  {
      logger.LogError(ex, $" Error executing function {context.FunctionDefinition} {ex.Message}");
  }

Even more unusual, I can see some logging coming from the Blob storage which has not been triggered and I don’t understand why this is happening inside the logs of my time triggered functions if they are not depending on each other. This only happens when I programmatically trigger the function using Postman, please see screenshot below

can someone help please?

Here is my Host.json

{
“version”: “2.0”,
“functions”: [],
“functionTimeout”: “00:10:00”,
“healthMonitor”: {
“enabled”: false,
“healthCheckInterval”: “00:00:10”,
“healthCheckWindow”: “00:02:00”,
“healthCheckThreshold”: 6,
“counterThreshold”: 0.8
},
“logging”: {
“fileLoggingMode”: “debugOnly”,
“logLevel”: {
“default”: “Information”
},
“console”: {
“isEnabled”: true
},
“applicationInsights”: {
“samplingSettings”: {
“isEnabled”: true,
“maxTelemetryItemsPerSecond”: 20,
“excludedTypes”: “Request”
}
}
}
}

Many thanks in advance!

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật