Azure / Azure/azure-functions-core-tools

Command `func azure functionapp logstream` fails on new Python apps

Open
#3,609 3 comments 0 reactions 1 assignee Claimed by @khkh-ms View on GitHub
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
5d 4h
Merged PRs (30d)
15

Description

Linux Consumption apps (e.g. most Python apps) require you to use the `func azure functionapp logstream --browser` to open a new AI Logstream window in the Azure portal because of https://github.com/Azure/azure-functions-core-tools/issues/2138.

However, this command seems to require the deprecated `APPINSIGHTS_INSTRUMENTATIONKEY` setting, which was are no longer setting for new apps (because it's deprecated).

**Repro:** create a new Linux app on a Consumption plan and run `func azure functionapp logstream --browser`
**Expected:** Logstream opens in a new browser window.
**Actual:** Error is returned: `Missing APPINSIGHTS_INSTRUMENTATIONKEY App Setting. Please make sure you have Application Insights configured with you function app.`

The current `func azure functionapp logstream` experience is [currently broken in the Python quickstart](https://learn.microsoft.com/azure/azure-functions/create-first-function-cli-python?tabs=windows%2Cbash%2Cazure-cli&pivots=python-mode-decorators#verify-in-azure).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.