Back to Azure Sdk For

@azure-typespec/http-client-csharp-provisioning

eng/packages/http-client-csharp-provisioning/README.md

2019-05-16T16-521.1 KB
Original Source

@azure-typespec/http-client-csharp-provisioning

TypeSpec library for emitting Azure provisioning (infrastructure-as-code) libraries for C#.

Overview

This package generates Azure.Provisioning.* libraries from TypeSpec ARM (Azure Resource Manager) definitions. It extends the management emitter (@azure-typespec/http-client-csharp-mgmt) to produce ProvisionableResource subclasses with BicepValue<T> properties, enabling C# infrastructure-as-code that compiles to Bicep templates.

Architecture

@typespec/http-client-csharp                         (core)
       ↑
@azure-typespec/http-client-csharp                    (Azure base)
       ↑
@azure-typespec/http-client-csharp-mgmt               (ARM management)
       ↑
@azure-typespec/http-client-csharp-provisioning        (provisioning — this package)

Install

bash
npm install @azure-typespec/http-client-csharp-provisioning

Usage

  1. Via the command line
bash
tsp compile . --emit=@azure-typespec/http-client-csharp-provisioning
  1. Via the config
yaml
emit:
  - '@azure-typespec/http-client-csharp-provisioning'