Azure / Azure/azure-functions-core-tools

func azure functionapp publish should support publishing dependencies (for PowerShell function apps)

Open
#2,046 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
5d 4h
Merged PRs (30d)
15

Description

Currently, PowerShell function app dependencies can be specified via `requirements.psd1`. These dependencies are downloaded and installed on the first function load (either locally or in Azure).

Once the function app is published to Azure, we download the dependencies (again) on the first function load. This contributes to cold start of about ~40 seconds just to install the Az module.

Proposal: When the function app is published, include the dependencies with it. This way, in the first function load, we skip installing the dependencies. This will help address cold start for PowerShell function apps with dedicated storage.

Please note that subsequent dependencies installation updates will be done in the background.

Contributor guide

Open the contributing guide

Research direction

Start with the `func azure functionapp publish` command and its handling of `requirements.psd1`; trace how dependencies are currently obtained during the first function load. Done means published PowerShell apps include those dependencies so the first load skips installation, while later dependency updates still occur in the background.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
cli, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.