1. Packages
  2. Azure Native
  3. How-to Guides
  4. Azure Functions in All Supported Languages
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.36.0 published on Monday, Apr 8, 2024 by Pulumi

Azure Functions in All Supported Languages

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.36.0 published on Monday, Apr 8, 2024 by Pulumi

    View Code Deploy

    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.

    Running the App

    1. Build and publish the .NET Function App project:

      $ dotnet publish dotnet
      
    2. Build and publish the Java Function App project:

      $ mvn clean package -f java
      
    3. Create a new stack:

      $ pulumi stack init dev
      
    4. Login to Azure CLI (you will be prompted to do this during deployment if you forget this step):

      $ az login
      
    5. Restore NPM dependencies:

      $ npm install
      
    6. Configure the location to deploy the resources to:

      $ pulumi config set azure-native:location <location>
      
    7. Run pulumi up to preview and deploy changes:

      $ pulumi up
      Previewing update (dev):
      ...
      
      Updating (dev):
      ...
      Resources:
          + 20 created
      Duration: 2m42s
      
    8. 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
      
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.36.0 published on Monday, Apr 8, 2024 by Pulumi