Ron and Ella Wiki Page

Extremely Serious

Page 26 of 35

Deploy Function using Azure Functions Core Tools

Use the following command to deploy a(some) locally developed function(s) to azure function app.

func azure functionapp publish <AZURE_FUNCTION_APP>

Note: This command will only work if your terminal session was signed in to azure. The login using the command found here.

Where:

AZURE_FUNCTION_APP The name of the function app found in azure portal.

Using Proxy with NodeJS

Execute the following command to set the proxy for HTTP:

npm config set proxy <HOST>:<PORT>

Execute the following command to set the proxy for HTTPS:

npm config set https-proxy <HOST>:<PORT>

Where:

HOST The host that is running the proxy server
PORT The port the proxy server is listening.

Adding NuGet Package Reference to a Project

Add a NuGet package reference to .Net Core project using the following command:

dotnet add package <PACKAGE_NAME> [-v <VERSION>]

Where:

PACKAGE_NAME The NuGet package to be added
VERSION If the optional -v was used, the target VERSION of the NuGet package.

Example without the -v option

dotnet add package Microsoft.ApplicationInsights

Example with the -v option

dotnet add package Microsoft.ApplicationInsights -v 2.10.0
« Older posts Newer posts »