-
Notifications
You must be signed in to change notification settings - Fork 462
Open
Description
Version
4.2.2
Description
Different host.json
contents are produced when func init
is used first versus when user directly uses func new
.
Check steps to reproduce for content details.
Expectation is that both files will be the same.
Steps to reproduce
- Open an empty folder in VS Code
- Open terminal
- Run command -
func new
- Choose python
- Choose any trigger template
- Observe host.json
{
"version": "2.0",
"isDefaultHostConfig": true,
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[4.*, 5.0.0)"
}
}
- Open an empty folder in VS Code
- Open terminal
- Run command -
func init
- Choose python
- Observe host.json
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
}
}
},
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[4.*, 5.0.0)"
}
}