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.
- Download the latest version from releases.
- Unzip it to a folder. Optionally, add the folder path to the
PATH
of your environment. - Update the
outputDir
setting in theConfigs/AppConfiguration.json
to the absolute path of the folder where you want the generated type files to be in. - Run
ArmTypeGenerator.exe
from the terminal. - Follow the instructions.
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.