Skip to content

Latest commit

 

History

History
152 lines (98 loc) · 8.88 KB

functions-runtime-install.md

File metadata and controls

152 lines (98 loc) · 8.88 KB
title description services author manager ms.assetid ms.service ms.devlang ms.topic ms.date ms.author
Azure Functions Runtime Installation | Microsoft Docs
How to Install the Azure Functions Runtime preview 2
functions
apwestgarth
stefsch
azure-functions
multiple
conceptual
11/28/2017
anwestg

Install the Azure Functions Runtime preview 2

If you would like to install the Azure Functions Runtime preview 2, follow these steps:

  1. Ensure your machine passes the minimum requirements.
  2. Download the Azure Functions Runtime Preview Installer.
  3. Uninstall the Azure Functions Runtime preview 1.
  4. Install the Azure Functions Runtime preview 2.
  5. Complete the configuration of the Azure Functions Runtime preview 2.
  6. Create your first function in Azure Functions Runtime Preview

Prerequisites

Before you install the Azure Functions Runtime preview, you must have the following resources available:

  1. A machine running Microsoft Windows Server 2016 or Microsoft Windows 10 Creators Update (Professional or Enterprise Edition).
  2. A SQL Server instance running within your network. Minimum edition required is SQL Server Express.

Uninstall Previous Version

If you have previously installed the Azure Functions Runtime preview, you must uninstall before installing the latest release. Uninstall the Azure Functions Runtime preview by removing the program in Add/Remove Programs in Windows.

Install the Azure Functions Runtime Preview

The Azure Functions Runtime Preview Installer guides you through the installation of the Azure Functions Runtime preview Management and Worker Roles. It is possible to install the Management and Worker role on the same machine. However, as you add more function apps, you must deploy more worker roles on additional machines to be able to scale your functions onto multiple workers.

Install the Management and Worker Role on the same machine

  1. Run the Azure Functions Runtime Preview Installer.

    Azure Functions Runtime preview installer

  2. Click Next.

  3. Once you have read the terms of the EULA, check the box to accept the terms and click Next to advance.

  4. Select the roles you want to install on this machine Functions Management Role and/or Functions Worker Role and click Next.

    Azure Functions Runtime preview installer - role selection

    [!NOTE] You can install the Functions Worker Role on many other machines. To do so, follow these instructions, and only select Functions Worker Role in the installer.

  5. Click Next to have the Azure Functions Runtime Setup Wizard begin the installation process on your machine.

  6. Once complete, the setup wizard launches the Azure Functions Runtime configuration tool.

    Azure Functions Runtime preview installer complete

    [!NOTE] If you are installing on Windows 10 and the Container feature has not been previously enabled, the Azure Functions Runtime Setup prompts you to reboot your machine to complete the install.

Configure the Azure Functions Runtime

To complete the Azure Functions Runtime installation, you must complete the configuration.

  1. The Azure Functions Runtime configuration tool shows which roles are installed on your machine.

    Azure Functions Runtime preview configuration tool

  2. Click the Database tab, enter the connection details for your SQL Server instance, including specifying a Database master key, and click Apply. Connectivity to a SQL Server instance is required in order for the Azure Functions Runtime to create a database to support the Runtime.

    Azure Functions Runtime preview database configuration

  3. Click the Credentials tab. Here, you must create two new credentials for use with a file share for hosting all your function apps. Specify User name and Password combinations for the file share owner and for the file share user, then click Apply.

    Azure Functions Runtime preview credentials

  4. Click the File Share tab. Here you must specify the details of the file share location. The file share can be created for you or you can use an existing File Share and click Apply. If you select a new File Share location, you must specify a directory for use by the Azure Functions Runtime.

    Azure Functions Runtime preview file share

  5. Click the IIS tab. This tab shows the details of the websites in IIS that the Azure Functions Runtime configuration tool creates. You may specify a custom DNS name here for the Azure Functions Runtime preview portal. Click Apply to complete.

    Azure Functions Runtime preview IIS

  6. Click the Services tab. This tab shows the status of the services in your Azure Functions Runtime configuration tool. If the Azure Functions Host Activation Service is not running after initial configuration, click Start Service.

    Azure Functions Runtime preview configuration complete

  7. Browse to the Azure Functions Runtime Portal as https://<machinename>.<domain>/.

    Azure Functions Runtime preview portal

Create your first function in Azure Functions Runtime preview

To create your first function in Azure Functions Runtime preview

  1. Browse to the Azure Functions Runtime Portal as https://. for example https://mycomputer.mydomain.com
  2. You are prompted to Log in, if deployed in a domain use your domain account username and password, otherwise use your local account username and password to log in to the portal.

Azure Functions Runtime preview portal login

  1. To create function apps, you must create a Subscription. In the top left-hand corner of the portal, click the + option next to the subscriptions

Azure Functions Runtime preview portal subscriptions

  1. Choose DefaultPlan, enter a name for your Subscription, and click Create.

Azure Functions Runtime preview portal subscription plan and name

  1. All of your function apps are listed in the left-hand pane of the portal. To create a new Function App, select the heading Function Apps and click the + option.

  2. Enter a name for your function app, select the correct Subscription, choose which version of the Azure Functions runtime you wish to program against and click Create

Azure Functions Runtime preview portal new function app

  1. Your new function app is listed in the left-hand pane of the portal. Select Functions and then click New Function at the top of the center pane in the portal.

Azure Functions Runtime preview templates

  1. Select the Timer Trigger function, in the right-hand flyout name your function and change the Schedule to */5 * * * * * (this cron expression causes your timer function to execute every five seconds), and click Create

Azure Functions Runtime preview new timer function configuration

  1. Your function has now been created. You can view the execution log of your Function app by expanding the log pane at the bottom of the portal.

Azure Functions Runtime preview function executing