in src/TemplateRefGenerator/Generators/MarkdownGenerator.cs [237:273]
private static string? GetAvmSection(SamplesFile samples, AvmLinkType linkType, ResourceMetadata resource)
{
var matchingLinks = samples.AvmLinks
.Where(x => StringComparer.OrdinalIgnoreCase.Equals(x.ResourceType, resource.ResourceType))
.Where(x => x.Type == linkType)
.OrderBy(x => x.Title).ToArray();
if (!matchingLinks.Any())
{
return null;
}
var sb = new StringBuilder();
sb.Append($"""
### Azure Verified Modules
The following [Azure Verified Modules](https://aka.ms/avm) can be used to deploy this resource type.
> [!div class="mx-tableFixed"]
> | Module | Description |
> | ----- | ----- |
""");
foreach (var link in matchingLinks)
{
var description = MarkdownUtils.ConvertDocsLinks(link.Description);
sb.Append($"""
> | [{link.Title}]({link.RepoUrl}) | {MarkdownUtils.Escape(description)} |
""");
}
sb.AppendLine("");
return sb.ToString();
}