Skip to content

Commit e865e54

Browse files
committed
Update runtime to version 10917 and rename to Azure Functions Core Tools
1 parent c358852 commit e865e54

14 files changed

+875
-492
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
|---|---|
55
|master|[![Build status](https://ci.appveyor.com/api/projects/status/max86pwo54y44j36/branch/master?svg=true)](https://ci.appveyor.com/project/appsvc/azure-functions-cli/branch/master)|
66

7-
# Azure Functions CLI
7+
# Azure Functions Core Tools
88

9-
The Azure Functions CLI provides a local development experience for creating, developing, testing, running, and debugging Azure Functions.
9+
The Azure Functions Core Tools provide a local development experience for creating, developing, testing, running, and debugging Azure Functions.
1010

1111
## Installing
1212

13-
**NOTE**: This package only currently works on Windows, since the underlying Functions Host is not yet cross-platform. You can upvote this GitHub issue if you're interested in running on other platforms: [make the Azure Functions CLI cross platform](https://github.com/Azure/azure-functions-cli/issues/13).
13+
**NOTE**: This package only currently works on Windows, since the underlying Functions Host is not yet cross-platform. You can upvote this GitHub issue if you're interested in running on other platforms: [make the Azure Functions Core Tools cross platform](https://github.com/Azure/azure-functions-cli/issues/13).
1414

1515
To install globally:
1616

1717
```
18-
npm i -g azure-functions-cli
18+
npm i -g azure-functions-core-tools
1919
```
2020

2121
### Aliases
@@ -30,7 +30,7 @@ azure-functions
3030

3131
## Commands
3232

33-
The CLI commands have the following basic structure:
33+
Commands have the following basic structure:
3434

3535
```
3636
func [context] [context] <action> [-/--options]
@@ -152,9 +152,9 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
152152

153153
## Contact Us
154154

155-
For questions on Azure Functions or the CLI, you can ask questions here:
155+
For questions on Azure Functions or the tools, you can ask questions here:
156156

157157
- [Azure Functions MSDN Forum](https://social.msdn.microsoft.com/Forums/azure/en-US/home?forum=AzureFunctions)
158158
- [Azure-Functions tag on StackOverflow](http://stackoverflow.com/questions/tagged/azure-functions)
159159

160-
File bugs at [Azure Functions CLI repo on GitHub](https://github.com/Azure/azure-functions-cli/issues).
160+
File bugs at [Azure Functions Core Tools repo on GitHub](https://github.com/Azure/azure-functions-cli/issues).

src/Azure.Functions.Cli/Actions/HostActions/StartHostAction.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
using Newtonsoft.Json;
2323
using Newtonsoft.Json.Linq;
2424
using static Azure.Functions.Cli.Common.OutputTheme;
25+
using Microsoft.Azure.WebJobs.Host;
26+
using Microsoft.Azure.WebJobs.Host.Config;
27+
using Microsoft.Azure.WebJobs.Extensions.Http;
2528

2629
namespace Azure.Functions.Cli.Actions.HostActions
2730
{
@@ -156,7 +159,9 @@ private void DisplayHttpFunctionsInfo(HttpSelfHostConfiguration config)
156159
{
157160
var httpRoute = function.Metadata.Bindings.FirstOrDefault(b => b.Type == "httpTrigger").Raw["route"]?.ToString();
158161
httpRoute = httpRoute ?? function.Name;
159-
var hostRoutePrefix = hostManager.Instance.ScriptConfig.HttpRoutePrefix ?? "api/";
162+
var extensions = hostManager.Instance.ScriptConfig.HostConfig.GetService<IExtensionRegistry>();
163+
var httpConfig = extensions.GetExtensions<IExtensionConfigProvider>().OfType<HttpExtensionConfiguration>().Single();
164+
var hostRoutePrefix = httpConfig.RoutePrefix ?? "api/";
160165
hostRoutePrefix = string.IsNullOrEmpty(hostRoutePrefix) || hostRoutePrefix.EndsWith("/")
161166
? hostRoutePrefix
162167
: $"{hostRoutePrefix}/";

src/Azure.Functions.Cli/App.config

+156-94
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
3+
<TelemetryInitializers>
4+
<Add Type="Microsoft.ApplicationInsights.DependencyCollector.HttpDependenciesParsingTelemetryInitializer, Microsoft.AI.DependencyCollector"/>
5+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer"/>
6+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureWebAppRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer"/>
7+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.BuildInfoConfigComponentVersionTelemetryInitializer, Microsoft.AI.WindowsServer"/>
8+
</TelemetryInitializers>
9+
<TelemetryModules>
10+
<Add Type="Microsoft.ApplicationInsights.DependencyCollector.DependencyTrackingTelemetryModule, Microsoft.AI.DependencyCollector">
11+
<ExcludeComponentCorrelationHttpHeadersOnDomains>
12+
<!--
13+
Requests to the following hostnames will not be modified by adding correlation headers.
14+
This is only applicable if Profiler is installed via either StatusMonitor or Azure Extension.
15+
Add entries here to exclude additional hostnames.
16+
NOTE: this configuration will be lost upon NuGet upgrade.
17+
-->
18+
<Add>core.windows.net</Add>
19+
<Add>core.chinacloudapi.cn</Add>
20+
<Add>core.cloudapi.de</Add>
21+
<Add>core.usgovcloudapi.net</Add>
22+
</ExcludeComponentCorrelationHttpHeadersOnDomains>
23+
</Add>
24+
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.PerformanceCollectorModule, Microsoft.AI.PerfCounterCollector">
25+
<!--
26+
Use the following syntax here to collect additional performance counters:
27+
28+
<Counters>
29+
<Add PerformanceCounter="\Process(??APP_WIN32_PROC??)\Handle Count" ReportAs="Process handle count" />
30+
...
31+
</Counters>
32+
33+
PerformanceCounter must be either \CategoryName(InstanceName)\CounterName or \CategoryName\CounterName
34+
35+
NOTE: performance counters configuration will be lost upon NuGet upgrade.
36+
37+
The following placeholders are supported as InstanceName:
38+
??APP_WIN32_PROC?? - instance name of the application process for Win32 counters.
39+
??APP_W3SVC_PROC?? - instance name of the application IIS worker process for IIS/ASP.NET counters.
40+
??APP_CLR_PROC?? - instance name of the application CLR process for .NET counters.
41+
-->
42+
</Add>
43+
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule, Microsoft.AI.PerfCounterCollector"/>
44+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.DeveloperModeWithDebuggerAttachedTelemetryModule, Microsoft.AI.WindowsServer"/>
45+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.UnhandledExceptionTelemetryModule, Microsoft.AI.WindowsServer"/>
46+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.UnobservedExceptionTelemetryModule, Microsoft.AI.WindowsServer"/>
47+
</TelemetryModules>
48+
<TelemetryProcessors>
49+
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryProcessor, Microsoft.AI.PerfCounterCollector"/>
50+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
51+
<MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond>
52+
</Add>
53+
</TelemetryProcessors>
54+
<TelemetryChannel Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.ServerTelemetryChannel, Microsoft.AI.ServerTelemetryChannel"/>
55+
<!--
56+
Learn more about Application Insights configuration with ApplicationInsights.config here:
57+
http://go.microsoft.com/fwlink/?LinkID=513840
58+
59+
Note: If not present, please add <InstrumentationKey>Your Key</InstrumentationKey> to the top of this file.
60+
--></ApplicationInsights>

0 commit comments

Comments
 (0)