Azure Functions created from raw deployment packages in all supported languages.
.NET and Java are precompiled languages, and the deployment artifact contains compiled binaries. You will need the following tools to build these projects:
Please remove the corresponding resources from the program in case you don't need those runtimes.
Known issue: #2784—Python deployment package gets corrupted if deployed from Windows. Workaround: deploy from WSL (Windows Subsystem for Linux), Mac OS, or Linux.
Running the App
Build and publish the .NET Function App project:
$ dotnet publish dotnet
Build and publish the Java Function App project:
$ mvn clean package -f java
Create a new stack:
$ pulumi stack init dev
Login to Azure CLI (you will be prompted to do this during deployment if you forget this step):
$ az login
Restore NPM dependencies:
$ npm install
Configure the location to deploy the resources to:
$ pulumi config set azure:location <location>
pulumi upto preview and deploy changes:
$ pulumi up Previewing update (dev): ... Updating (dev): ... Resources: + 33 created Duration: 2m42s
Check the deployed function endpoints:
$ pulumi stack output dotnetEndpoint https://http-dotnet1a2d3e4d.azurewebsites.net/api/HelloDotnet?name=Pulumi $ curl "$(pulumi stack output dotnetEndpoint)" Hello from .NET, Pulumi