Skip to content

A CLI to generator C# types for Azure ARM resources from the corresponding json schemas of Azure ARM.

License

Notifications You must be signed in to change notification settings

chunliu/ArmTypeGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArmTypeGenerator

CI/CD

A console application to generator C# types for Azure ARM resources from the corresponding json schemas of Azure ARM. A set of generated libraries can be found in this repo: AzureDesignStudio.AzureResources.

ArmTypeGenerator screenshot

How to use

  1. Download the latest version from releases.
  2. Unzip it to a folder. Optionally, add the folder path to the PATH of your environment.
  3. Update the outputDir setting in the Configs/AppConfiguration.json to the absolute path of the folder where you want the generated type files to be in.
  4. Run ArmTypeGenerator.exe from the terminal.
  5. Follow the instructions.

Acknowledgement

The core functions of ArmTypeGenerator is built on top of a customized version of Microsoft.Json.Schema and Microsoft.Json.Schema.ToDotNet which are parts of Microsoft/jschema. Microsoft/jschema is the most complete and useful library for C# to deal with Json schemas that I can find so far. Thanks my colleague @cbellee for recommending it to me.

The console is built on top of the wonderful library Spectre.Console.

About

A CLI to generator C# types for Azure ARM resources from the corresponding json schemas of Azure ARM.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages