private static string GetBicepZone()

in src/TemplateRefGenerator/Generators/MarkdownGenerator.cs [275:376]


    private static string GetBicepZone(ConfigLoader configLoader, RemarksLoader remarksLoader, ResourceMetadata resource, ImmutableArray<NamedType> namedTypes, RemarksFile remarks, int anchorIndex)
    {
        var sb = new StringBuilder();
        sb.Append($"""
::: zone pivot="deployment-language-bicep"

## Bicep resource definition

The {resource.UnqualifiedResourceType} resource type can be deployed with operations that target: 


""");

        if (resource.Type.ScopeType.HasFlag(ScopeType.Tenant))
        {
                    sb.Append($"""
* **Tenant** - See [tenant deployment commands](/azure/azure-resource-manager/bicep/deploy-to-tenant)
""");
        }

        if (resource.Type.ScopeType.HasFlag(ScopeType.ManagementGroup))
        {
                    sb.Append($"""
* **Management groups** - See [management group deployment commands](/azure/azure-resource-manager/bicep/deploy-to-management-group)
""");
        }

        if (resource.Type.ScopeType.HasFlag(ScopeType.Subscription))
        {
                    sb.Append($"""
* **Subscription** - See [subscription deployment commands](/azure/azure-resource-manager/bicep/deploy-to-subscription)
""");
        }

        if (resource.Type.ScopeType.HasFlag(ScopeType.ResourceGroup))
        {
                    sb.Append($"""
* **Resource groups** - See [resource group deployment commands](/azure/azure-resource-manager/bicep/deploy-to-resource-group)
""");
        }

        var samples = CodeSampleGenerator.GetExample(resource, namedTypes, CodeSampleGenerator.Flavor.Bicep);

        sb.Append($"""


For a list of changed properties in each API version, see [change log](~/{resource.Provider.ToLowerInvariant()}/change-log/{resource.UnqualifiedResourceType.ToLowerInvariant()}.md).

## Resource format

To create a {resource.ResourceType} resource, add the following Bicep to your template.

```bicep
{samples.MainSample}
```

""");

        sb.Append(GetDeploymentRemarks(resource, remarks, DeploymentType.Bicep));

        foreach (var (discObjectType, discSamples) in samples.DiscrimatedSamples)
        {
            sb.Append($"""
### {discObjectType.Name} objects

Set the **{discObjectType.Discriminator}** property to specify the type of object.


""");

            foreach (var discSample in discSamples)
            {
                sb.Append($"""
For **{discSample.DiscriminatorValue}**, use:

```bicep
{discSample.Sample}
```


""");
            }
        }

        sb.Append(GenerateOptionalSection("Property Values", [
            GetPropertyValues(resource, DeploymentType.Bicep, namedTypes, remarks, anchorIndex),
        ]));

        sb.Append(GenerateOptionalSection("Usage Examples", [
            GetBicepSamplesSection(remarksLoader, resource, remarks),
            GetAvmSection(configLoader.GetSamples(), AvmLinkType.Bicep, resource),
            GetBicepQuickstartsSection(configLoader.GetSamples(), resource),
        ]));

        sb.Append($"""

::: zone-end

""");

        return sb.ToString();
    }