Bicep.LocalDeploy 1.0.1

dotnet add package Bicep.LocalDeploy --version 1.0.1
                    
NuGet\Install-Package Bicep.LocalDeploy -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="Bicep.LocalDeploy" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bicep.LocalDeploy" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Bicep.LocalDeploy" />
                    
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 Bicep.LocalDeploy --version 1.0.1
                    
#r "nuget: Bicep.LocalDeploy, 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 Bicep.LocalDeploy@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=Bicep.LocalDeploy&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Bicep.LocalDeploy&version=1.0.1
                    
Install as a Cake Tool

The Bicep.LocalDeploy.DocGenerator project is a documentation tool to generate Markdown files based on .NET Bicep models. It assists by reading the attributes from the model you have defined for your Bicep local-deploy and generating reference documentation(examples, arguments, and outputs).

The bicep-local-docgen command-line utility (CLI) has two options available:

  • generate: Generate documentation files from Bicep models.
  • check: Check if models have available attributes to leverage in documentation

Each subcommand provides help information. If you call bicep-local-docgen generate --help, it shows you the help description for the options available.

Project Description
Bicep.LocalDeploy Library for Bicep model annotations
bicep-local-docgen CLI utility to generate Markdown files from Bicep models (*cs) files

Getting started

To install the CLI utility globally, use the following command:

dotnet tool install bicep-local-docgen -g

Then, target a directory containing your Bicep model files. For example, the following command generates documentation in the Models directory:

bicep-local-docgen generate --source Models

The CLI's default output is the docs directory. Use the --output or --pattern options to customize the behavior of the CLI. If you want to see verbose message, add the --verbose option to log messages to the console.

For the full documentation, check it out on GitHub.

Using attributes for documentation

This project includes a .NET library that can be used to customize the rendered Markdown output. In .NET, you use attributes to annotate your models. Add the Bicep.LocalDeploy package to your project to use them.

To add the library to your project, simply run the following command:

dotnet add package Bicep.LocalDeploy

You can annotate your models with these attributes:

  • [BicepDocHeadingAttribute]: Sets the first heading (H1) title and its description.
  • [BicepFrontMatterAttribute]: Adds YAML front matter key/value pairs.
  • [BicepDocExampleAttribute]: Adds example blocks (title, description, code[, language]).
  • [BicepDocCustomAttribute]: Adds custom sections (title, description).

For example, imagine you've defined the following Bicep model:

using Azure.Bicep.Types.Concrete;
using Bicep.Local.Extension.Types.Attributes;
using System.Text.Json.Serialization;

namespace MyOwnModel;

[ResourceType("MyOwnResource")]
public class MyOwnResource : DirectoryIdentifiers
{

}

public class MyOwnResourceIdentifiers
{
    [TypeProperty("A demo resource.", ObjectTypePropertyFlags.Required | ObjectTypePropertyFlags.Identifier)]
    public required string Resource { get; set; }
}

When you run the bicep-local-docgen tool, the produces output will be:


# MyOwnResource

Manages MyOwnResource resources.

## Example usage

### Basic MyOwnResource

Creating a basic MyOwnResource resource:

```bicep
resource myOwnResource 'MyOwnResource' = {
}
```

If you add annotations in the following way:

[BicepDocHeading("My Own Resource", "Example resource used to demonstrate documentation generation.")]
[BicepFrontMatter("category", "resource")]
[BicepDocExample(
        "Basic deployment",
        "Minimal example creating the resource.",
        @"resource my 'MyOwnResource' = {
Resource: 'my-resource'
}")]
[BicepDocCustom("Custom Section", "This is a custom section.")]
// Rest of the code

The produces output is the following Markdown:


---
category: "resource"
---

# My Own Resource

Example resource used to demonstrate documentation generation.

## Example usage

### Basic deployment

Minimal example creating the resource.

```bicep
resource my 'MyOwnResource' = {
Resource: 'my-resource'
}
```

## Custom Section

This is a custom section.
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net9.0

    • 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 266 9/17/2025
1.0.0 267 9/17/2025
0.1.3 151 9/13/2025
0.1.2 110 9/13/2025
0.1.1 104 9/13/2025
0.1.0 111 9/13/2025