Az.Functions.MetadataToJson 1.0.1

dotnet add package Az.Functions.MetadataToJson --version 1.0.1                
NuGet\Install-Package Az.Functions.MetadataToJson -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="Az.Functions.MetadataToJson" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Az.Functions.MetadataToJson --version 1.0.1                
#r "nuget: Az.Functions.MetadataToJson, 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.
// Install Az.Functions.MetadataToJson as a Cake Addin
#addin nuget:?package=Az.Functions.MetadataToJson&version=1.0.1

// Install Az.Functions.MetadataToJson as a Cake Tool
#tool nuget:?package=Az.Functions.MetadataToJson&version=1.0.1                

Az.Functions.MetadataToJson

Summary

This package is a band-aid to fix an issue with Azure Functions Core Tools not recognizing functions metadata for projects with dotnet-isolated worker runtime when deploying to Kubernetes.

See the original issue here: https://github.com/Azure/azure-functions-core-tools/issues/2825

Details

Apparently, the Kubernetes deployment part of the function tools was not updated to support dotnet-isolated worker runtime yet since it still looks for function.json files which are not being generated with the new runtime.

That being said, the functions metadata still gets created in the functions.metadata file which is essentially an array of objects with similar to function.json structure.

This package adds a post-build action to your functions project that splits the new functions.metadata file into multiple function.json-s, each in its own folder, similarly to what the in-process SDK generates.

This helps Azure Functions Core Tools identify that metadata and properly generate Kubernetes deploy yaml files.

Usage

Add a reference to this package in your Azure Functions project:

<ItemGroup>
  <PackageReference Include="Az.Functions.MetadataToJson" Version="1.0.1" />
</ItemGroup>

After that, the func kubernetes deploy --csharp should work as expected.

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 14,051 3/27/2022
1.0.0 246 3/27/2022