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:
- .NET Core SDK for the .NET Function App
- Apache Maven for the Java Function App
Please remove the corresponding resources from the program in case you don't need those runtimes.
- Install Pulumi
- Configure Azure credentials
- Install Node.js
- Install .NET (for the .NET Function App)
- Install Apache Maven (for the Java Function 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
-
Log in to the Azure CLI (you will be prompted to do this during deployment if you forget this step):
az login
-
Set the Azure region to deploy into:
pulumi config set azure-native:location <location>
-
Install dependencies:
npm install
-
Run
pulumi upto preview and deploy changes:pulumi up
Updating (dev): ... Resources: + 20 created Duration: 2m42s -
Check the deployed function endpoints:
pulumi stack output dotnetEndpoint curl "$(pulumi stack output dotnetEndpoint)"https://http-dotnet1a2d3e4d.azurewebsites.net/api/HelloDotnet?name=Pulumi Hello from .NET, Pulumi
Once you are done, you can destroy all of the resources, and the stack:
pulumi destroy
pulumi stack rm