{
    "api_version": "1",
    "kind": "dse_post",
    "self": "https://update.dsesecurity.com/api/v1/posts/dse-20260909-349-bound-bicep-diagnostic-suppression-before-accepting-a-clean-build/",
    "item": {
        "id": "https://update.dsesecurity.com/updates/dse-20260909-349-bound-bicep-diagnostic-suppression-before-accepting-a-clean-build/",
        "slug": "dse-20260909-349-bound-bicep-diagnostic-suppression-before-accepting-a-clean-build",
        "url": "https://update.dsesecurity.com/updates/dse-20260909-349-bound-bicep-diagnostic-suppression-before-accepting-a-clean-build/",
        "alternate_urls": {
            "markdown": "https://update.dsesecurity.com/updates/dse-20260909-349-bound-bicep-diagnostic-suppression-before-accepting-a-clean-build.md",
            "json": "https://update.dsesecurity.com/api/v1/posts/dse-20260909-349-bound-bicep-diagnostic-suppression-before-accepting-a-clean-build/"
        },
        "title": "Bound Bicep diagnostic suppression before accepting a clean build",
        "summary": "How far does a Bicep diagnostic suppression extend beyond the line being reviewed?",
        "format": {
            "slug": "guide",
            "name": "Guide"
        },
        "priority": {
            "slug": "info",
            "name": "Information"
        },
        "featured": false,
        "image": {
            "theme": "cyber-defense",
            "label": "Cyber defense",
            "alt": "Layered glass and metal cyber-defense structure with controlled blue and gold signal paths.",
            "card_url": "https://update.dsesecurity.com/assets/editorial/cyber-defense-card.webp?v=1.8.20",
            "hero_url": "https://update.dsesecurity.com/assets/editorial/cyber-defense-hero.webp?v=1.8.20",
            "social_url": "https://update.dsesecurity.com/assets/editorial/cyber-defense-social-v2.jpg?v=1.8.20",
            "width": 2400,
            "height": 1350
        },
        "topics": [
            {
                "slug": "cybersecurity",
                "name": "Cybersecurity",
                "url": "https://update.dsesecurity.com/topic/cybersecurity/"
            },
            {
                "slug": "it",
                "name": "IT",
                "url": "https://update.dsesecurity.com/topic/it/"
            }
        ],
        "author": {
            "name": "DSE Security Editorial Team",
            "url": "https://update.dsesecurity.com/#editorial-team",
            "type": "Organization"
        },
        "publisher": {
            "name": "Detection Systems & Engineering",
            "url": "https://dsesecurity.com/"
        },
        "published_at": "2026-09-10T00:26:07+00:00",
        "modified_at": "2026-09-10T01:40:04+00:00",
        "reviewed_on": "2026-09-09",
        "reading_minutes": 2,
        "word_count": 225,
        "potentially_affected": "Bicep files using diagnostic or linter suppression directives.",
        "dse_recommendation": "DSE recommends choosing the smallest suppression scope that matches the reviewed exception.",
        "primary_source": {
            "name": "Bicep file structure and syntax - Azure Resource Manager | Microsoft Learn",
            "url": "https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/file",
            "published_on": null,
            "authority": "Microsoft Learn"
        },
        "publishing_principles": "https://update.dsesecurity.com/updates/dse-updates-editorial-methodology/",
        "usage_info": "https://update.dsesecurity.com/usage/",
        "copyright_notice": "Copyright © 2026 Detection Systems & Engineering. All rights reserved.",
        "content_html": "<h2>Source facts</h2>\n<p>Bicep&#8217;s disable-next-line directive affects only the following line. By contrast, disable-diagnostics suppresses the named diagnostics throughout the file or until restore-diagnostics reenables them. Directives require at least one diagnostic or rule identifier, and those identifiers are case-sensitive. Microsoft recommends limited, intentional use with an explanatory comment. <a href=\"https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/file\" target=\"_blank\" rel=\"noopener noreferrer\">Microsoft Learn</a>.</p>\n<h2>Applicability</h2>\n<p>Review both the location of a directive and the interval it affects. Separate an approved exception for one expression from a broader decision to suppress a diagnostic in later resources or modules. Do not infer the scope of the exception from its accompanying comment alone.</p>\n<h2>DSE recommendation</h2>\n<p>DSE recommends choosing the smallest suppression scope that matches the reviewed exception. Record why the diagnostic does not apply, identify the exact rule or code, and inspect any restoration point. When moving or adding code around a file-wide directive, revisit the affected interval. A clean diagnostics list should not replace an examination of which checks were deliberately disabled.</p>\n<h2>Verification</h2>\n<p>Use a controlled copy with a known instance of the diagnostic inside and outside the intended exception. Check that the outside case remains visible and that restoration occurs where planned. Verify identifier spelling and capitalization with the actual compiler or linter output. Preserve the before-and-after diagnostics and source diff, without retaining test suppressions in production merely to obtain a clean build.</p>\n<h2>Official references</h2>\n<p><a href=\"https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/file\" target=\"_blank\" rel=\"noopener noreferrer\">Microsoft Learn</a>. Source retrieved September 9, 2026.</p>",
        "content_text": "Source facts\nBicep’s disable-next-line directive affects only the following line. By contrast, disable-diagnostics suppresses the named diagnostics throughout the file or until restore-diagnostics reenables them. Directives require at least one diagnostic or rule identifier, and those identifiers are case-sensitive. Microsoft recommends limited, intentional use with an explanatory comment. Microsoft Learn.\nApplicability\nReview both the location of a directive and the interval it affects. Separate an approved exception for one expression from a broader decision to suppress a diagnostic in later resources or modules. Do not infer the scope of the exception from its accompanying comment alone.\nDSE recommendation\nDSE recommends choosing the smallest suppression scope that matches the reviewed exception. Record why the diagnostic does not apply, identify the exact rule or code, and inspect any restoration point. When moving or adding code around a file-wide directive, revisit the affected interval. A clean diagnostics list should not replace an examination of which checks were deliberately disabled.\nVerification\nUse a controlled copy with a known instance of the diagnostic inside and outside the intended exception. Check that the outside case remains visible and that restoration occurs where planned. Verify identifier spelling and capitalization with the actual compiler or linter output. Preserve the before-and-after diagnostics and source diff, without retaining test suppressions in production merely to obtain a clean build.\nOfficial references\nMicrosoft Learn. Source retrieved September 9, 2026.",
        "content_markdown": "## Source facts\n\nBicep’s disable-next-line directive affects only the following line. By contrast, disable-diagnostics suppresses the named diagnostics throughout the file or until restore-diagnostics reenables them. Directives require at least one diagnostic or rule identifier, and those identifiers are case-sensitive. Microsoft recommends limited, intentional use with an explanatory comment. [Microsoft Learn](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/file).\n\n## Applicability\n\nReview both the location of a directive and the interval it affects. Separate an approved exception for one expression from a broader decision to suppress a diagnostic in later resources or modules. Do not infer the scope of the exception from its accompanying comment alone.\n\n## DSE recommendation\n\nDSE recommends choosing the smallest suppression scope that matches the reviewed exception. Record why the diagnostic does not apply, identify the exact rule or code, and inspect any restoration point. When moving or adding code around a file-wide directive, revisit the affected interval. A clean diagnostics list should not replace an examination of which checks were deliberately disabled.\n\n## Verification\n\nUse a controlled copy with a known instance of the diagnostic inside and outside the intended exception. Check that the outside case remains visible and that restoration occurs where planned. Verify identifier spelling and capitalization with the actual compiler or linter output. Preserve the before-and-after diagnostics and source diff, without retaining test suppressions in production merely to obtain a clean build.\n\n## Official references\n\n[Microsoft Learn](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/file). Source retrieved September 9, 2026."
    },
    "json_ld": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://dsesecurity.com/#organization",
                "name": "Detection Systems & Engineering",
                "alternateName": "DSE Security",
                "url": "https://dsesecurity.com/",
                "logo": {
                    "@type": "ImageObject",
                    "url": "https://update.dsesecurity.com/assets/dse-logo-20260812.png?v=1.8.20"
                }
            },
            {
                "@type": "Organization",
                "@id": "https://update.dsesecurity.com/#editorial-team",
                "name": "DSE Security Editorial Team",
                "url": "https://update.dsesecurity.com/",
                "parentOrganization": {
                    "@id": "https://dsesecurity.com/#organization"
                }
            },
            {
                "@type": "WebSite",
                "@id": "https://update.dsesecurity.com/#website",
                "name": "DSE Updates",
                "alternateName": "DSE Security Knowledge Hub",
                "url": "https://update.dsesecurity.com/",
                "inLanguage": "en-US",
                "publisher": {
                    "@id": "https://dsesecurity.com/#organization"
                },
                "potentialAction": {
                    "@type": "SearchAction",
                    "target": {
                        "@type": "EntryPoint",
                        "urlTemplate": "https://update.dsesecurity.com/?q={search_term_string}"
                    },
                    "query-input": "required name=search_term_string"
                }
            },
            {
                "@type": "WebPage",
                "@id": "https://update.dsesecurity.com/updates/dse-20260909-349-bound-bicep-diagnostic-suppression-before-accepting-a-clean-build/",
                "url": "https://update.dsesecurity.com/updates/dse-20260909-349-bound-bicep-diagnostic-suppression-before-accepting-a-clean-build/",
                "isPartOf": {
                    "@id": "https://update.dsesecurity.com/#website"
                },
                "lastReviewed": "2026-09-09"
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://update.dsesecurity.com/updates/dse-20260909-349-bound-bicep-diagnostic-suppression-before-accepting-a-clean-build/#breadcrumbs",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "DSE Updates",
                        "item": "https://update.dsesecurity.com/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Bound Bicep diagnostic suppression before accepting a clean build",
                        "item": "https://update.dsesecurity.com/updates/dse-20260909-349-bound-bicep-diagnostic-suppression-before-accepting-a-clean-build/"
                    }
                ]
            },
            {
                "@type": [
                    "Article",
                    "TechArticle"
                ],
                "@id": "https://update.dsesecurity.com/updates/dse-20260909-349-bound-bicep-diagnostic-suppression-before-accepting-a-clean-build/#article",
                "identifier": "https://update.dsesecurity.com/updates/dse-20260909-349-bound-bicep-diagnostic-suppression-before-accepting-a-clean-build/",
                "url": "https://update.dsesecurity.com/updates/dse-20260909-349-bound-bicep-diagnostic-suppression-before-accepting-a-clean-build/",
                "headline": "Bound Bicep diagnostic suppression before accepting a clean build",
                "description": "How far does a Bicep diagnostic suppression extend beyond the line being reviewed?",
                "abstract": "How far does a Bicep diagnostic suppression extend beyond the line being reviewed?",
                "articleBody": "Source facts\nBicep’s disable-next-line directive affects only the following line. By contrast, disable-diagnostics suppresses the named diagnostics throughout the file or until restore-diagnostics reenables them. Directives require at least one diagnostic or rule identifier, and those identifiers are case-sensitive. Microsoft recommends limited, intentional use with an explanatory comment. Microsoft Learn.\nApplicability\nReview both the location of a directive and the interval it affects. Separate an approved exception for one expression from a broader decision to suppress a diagnostic in later resources or modules. Do not infer the scope of the exception from its accompanying comment alone.\nDSE recommendation\nDSE recommends choosing the smallest suppression scope that matches the reviewed exception. Record why the diagnostic does not apply, identify the exact rule or code, and inspect any restoration point. When moving or adding code around a file-wide directive, revisit the affected interval. A clean diagnostics list should not replace an examination of which checks were deliberately disabled.\nVerification\nUse a controlled copy with a known instance of the diagnostic inside and outside the intended exception. Check that the outside case remains visible and that restoration occurs where planned. Verify identifier spelling and capitalization with the actual compiler or linter output. Preserve the before-and-after diagnostics and source diff, without retaining test suppressions in production merely to obtain a clean build.\nOfficial references\nMicrosoft Learn. Source retrieved September 9, 2026.",
                "datePublished": "2026-09-10T00:26:07+00:00",
                "dateModified": "2026-09-10T01:40:04+00:00",
                "mainEntityOfPage": {
                    "@id": "https://update.dsesecurity.com/updates/dse-20260909-349-bound-bicep-diagnostic-suppression-before-accepting-a-clean-build/"
                },
                "inLanguage": "en-US",
                "isAccessibleForFree": true,
                "author": {
                    "@type": "Organization",
                    "name": "DSE Security Editorial Team",
                    "url": "https://update.dsesecurity.com/#editorial-team"
                },
                "publisher": {
                    "@id": "https://dsesecurity.com/#organization"
                },
                "image": {
                    "@type": "ImageObject",
                    "@id": "https://update.dsesecurity.com/updates/dse-20260909-349-bound-bicep-diagnostic-suppression-before-accepting-a-clean-build/#primaryimage",
                    "url": "https://update.dsesecurity.com/assets/editorial/cyber-defense-social-v2.jpg?v=1.8.20",
                    "contentUrl": "https://update.dsesecurity.com/assets/editorial/cyber-defense-social-v2.jpg?v=1.8.20",
                    "width": 1200,
                    "height": 630,
                    "caption": "Bound Bicep diagnostic suppression before accepting a clean build"
                },
                "articleSection": [
                    "Cybersecurity",
                    "IT"
                ],
                "keywords": [
                    "Cybersecurity",
                    "IT",
                    "Guide",
                    "Information priority"
                ],
                "genre": "Guide",
                "about": [
                    {
                        "@type": "Thing",
                        "name": "Cybersecurity",
                        "url": "https://update.dsesecurity.com/topic/cybersecurity/"
                    },
                    {
                        "@type": "Thing",
                        "name": "IT",
                        "url": "https://update.dsesecurity.com/topic/it/"
                    }
                ],
                "wordCount": 225,
                "timeRequired": "PT2M",
                "publishingPrinciples": "https://update.dsesecurity.com/updates/dse-updates-editorial-methodology/",
                "usageInfo": "https://update.dsesecurity.com/usage/",
                "copyrightHolder": {
                    "@id": "https://dsesecurity.com/#organization"
                },
                "copyrightNotice": "Copyright © 2026 Detection Systems & Engineering. All rights reserved.",
                "citation": {
                    "@type": "CreativeWork",
                    "name": "Bicep file structure and syntax - Azure Resource Manager | Microsoft Learn",
                    "url": "https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/file"
                }
            }
        ]
    }
}