Azure Resource Manager (ARM) Template Specs are a first-party solution for storing and managing ARM Templates. With Template Specs, ARM templates are uploaded to Azure and managed as an Azure resource, including access control with RBAC security. Template Specs also support versioning and adding linked templates to the Template Spec to create a complete package for ARM deployments.
Code on GitHub
https://github.com/tsrob50/PublicExamples