OS: Win 11 x64
Build Version: 20260513.1
Repro Steps:
- Create a new self-hosted MCP server project with Python language.
- Create a Premium/App Service Plan Python function app with "Secrets" authentication type.
- Deploy the project to the function app.
- Check whether succeeds to deploy or not.
Expect:
Succeed to deploy the project.
Actual:
Fail to deploy the project.

More Info:
- This issue does not reproduce if deploying the same project to a Premium/App Service Plan Python function app with "Managed identity" authentication type or Flex Consumption function app.
- This issue does not reproduce for self-hosted C#/TypeScript MCP project.
- No function displays in non-Flex Consumption function app after deployment.
OS: Win 11 x64
Build Version: 20260513.1
Repro Steps:
Expect:
Succeed to deploy the project.
Actual:

Fail to deploy the project.
More Info: