Isolate logic using functional interface and execute it with Funxion utility class which can be found from the following link:
Page 26 of 35
Use the template found in the following link:
https://github.com/rcw3bb/azure-application-insight-custom-telemetry
Login to azure using the following command:
az login
Show the currently signed in account using the following command:
az account show
Logout to azure using the following command:
az logout
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. |
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. |
Using Node Package Manager (i.e. npm)
npm install -g azure-functions-core-tools
Using Chocolatey (i.e. choco)
choco install azure-functions-core-tools
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
It is recommended to have the following command somewhere in the beginning of the batch file:
cd /d %~dp0
The presence of this will run all the commands after it with respect to the location of the running batch file.
| Name | URL |
|---|---|
| Gradle Plugins | https://plugins.gradle.org/m2/ |
| JCenter | https://jcenter.bintray.com |
| Maven Central | http://central.maven.org/maven2/ |
| Maven Repo1 | https://repo1.maven.org/maven2/ |
If you need an recent openjdk version for ubuntu add the following repository:
sudo add-apt-repository ppa:openjdk-r/ppa
Then do an update like the following:
sudo apt-get update
Recent Comments