Azure.Functions.Cli.Workloads.Templates.Python 1.0.1

Prefix Reserved
dotnet add package Azure.Functions.Cli.Workloads.Templates.Python --version 1.0.1
                    
NuGet\Install-Package Azure.Functions.Cli.Workloads.Templates.Python -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Azure.Functions.Cli.Workloads.Templates.Python" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Azure.Functions.Cli.Workloads.Templates.Python" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Azure.Functions.Cli.Workloads.Templates.Python" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Azure.Functions.Cli.Workloads.Templates.Python --version 1.0.1
                    
#r "nuget: Azure.Functions.Cli.Workloads.Templates.Python, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Azure.Functions.Cli.Workloads.Templates.Python@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Azure.Functions.Cli.Workloads.Templates.Python&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Azure.Functions.Cli.Workloads.Templates.Python&version=1.0.1
                    
Install as a Cake Tool

Azure Functions CLI: Python templates workload

This package ships function-scaffold templates for Python Azure Functions projects (v2 programming model only), consumed by the func CLI's func new command. It is a content workload (Workload Spec §3; Templates Workload Spec §4.1): the package carries template files only, with no entry-point assembly and no runtime services. func new resolves the install directory by package id and reads the template payload directly.

v1 (legacy) programming model templates are not shipped in the v5 Python templates workload (Templates Workload Spec §5.2 / §6.2 / §7.1). Users still authoring against the v1 programming model should migrate to v2 or stay on v4 tooling.

The workload pkg version is independent of the source bundle version (Templates Workload Spec §4.4.1). The channel a workload was built from is encoded in the pkg version's prerelease label, and that channel maps 1:1 to an extension-bundle id (Templates Workload Spec §4.4.2):

Channel Workload pkg version Bundle id
stable 1.0.0 Microsoft.Azure.Functions.ExtensionBundle
preview 1.0.0-preview Microsoft.Azure.Functions.ExtensionBundle.Preview
experimental 1.0.0-experimental Microsoft.Azure.Functions.ExtensionBundle.Experimental

The bundle id is both the upstream extension bundle the workload's templates were snapshotted from at build time and the value func new expects in the project's host.json extensionBundle.id at scaffold time. Channel selection at func new is implicit — derived from the project's host.json bundle id.

Bundle compatibility

This workload declares a minimum compatible extension-bundle version ([4.0.0,)). func new validates the project's resolved bundle version against this constraint and surfaces incompatibilities as a warning or error (Templates Workload Spec §4.4.4). The constraint is recorded in three locations that all derive from the single $(MinBundleVersionRange) MSBuild property, so they cannot drift:

  • tools/any/content/templates-workload.json — CLI-owned sibling manifest. Authoritative. Generated at pack time by the GenerateTemplatesWorkloadJson target.
  • Nuspec minBundle:[4.0.0,) tag — discoverable via func workload search / list.
  • Nuspec <description> sentence — surfaced by func workload list.

Install

func workload install Azure.Functions.Cli.Workloads.Templates.Python@1.0.0
# or by alias
func workload install python-templates@1.0.0

Preview / experimental channels resolve via the matching prerelease label:

func workload install python-templates@1.0.0-preview
func workload install python-templates@1.0.0-experimental

Multiple templates versions coexist via --force (Workload Spec §4.6).

Build-time channel selection

The source bundle id used at pack time is driven by $(TemplatesChannel) in Directory.Version.props:

dotnet pack ... /p:TemplatesChannel=preview
dotnet pack ... /p:TemplatesChannel=experimental

$(SourceBundleVersion) selects the bundle version whose StaticContent/v2 subtree is snapshotted at build time. It is recorded as build provenance only; it does not derive the templates pkg version (Templates Workload Spec §4.4.1).

Layout

The package places the template payload under tools/any/content/, matching the upstream extension bundle's StaticContent/v2/ subtree with the StaticContent/ wrapper stripped (Templates Workload Spec §5.2). Python ships only the v2 programming-model subtree:

<workload-home>/workloads/azure.functions.cli.workloads.templates.python/<version>/
  tools/any/content/
    templates-workload.json      ← min-bundle sibling manifest
    v2/                          ← v2 programming model
      bindings/userPrompts.json
      resources/Resources.json
      resources/Resources.<locale>.json
      templates/templates.json   ← NewTemplate[] (jobs/actions)
  workload.json

Template files are carried inline inside each NewTemplate entry's files: { <filename>: <contents> } map; there are no separate per-template file directories on disk (Templates Workload Spec §5.2). v2 templates reference prompt ids defined in v2/bindings/userPrompts.json via paramId references inside jobs[].inputs[]. tools/any/ is the canonical content-workload payload path.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 52 6/2/2026

See https://github.com/Azure/azure-functions-core-tools/releases/tag/v5.0.0-preview.1

# Azure.Functions.Cli.Workloads.Templates.Python

## 1.0.1