{
    "api_version": "1",
    "kind": "dse_post",
    "self": "https://update.dsesecurity.com/api/v1/posts/dse-20260909-245-select-the-editor-s-cloud-before-deploying-bicep-from-visual-studio-code/",
    "item": {
        "id": "https://update.dsesecurity.com/updates/dse-20260909-245-select-the-editor-s-cloud-before-deploying-bicep-from-visual-studio-code/",
        "slug": "dse-20260909-245-select-the-editor-s-cloud-before-deploying-bicep-from-visual-studio-code",
        "url": "https://update.dsesecurity.com/updates/dse-20260909-245-select-the-editor-s-cloud-before-deploying-bicep-from-visual-studio-code/",
        "alternate_urls": {
            "markdown": "https://update.dsesecurity.com/updates/dse-20260909-245-select-the-editor-s-cloud-before-deploying-bicep-from-visual-studio-code.md",
            "json": "https://update.dsesecurity.com/api/v1/posts/dse-20260909-245-select-the-editor-s-cloud-before-deploying-bicep-from-visual-studio-code/"
        },
        "title": "Select the editor's cloud before deploying Bicep from Visual Studio Code",
        "summary": "Does a bicepconfig.json cloud profile select the cloud used by the editor's deployment command?",
        "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:27:51+00:00",
        "modified_at": "2026-09-10T01:20:46+00:00",
        "reviewed_on": "2026-09-09",
        "reading_minutes": 2,
        "word_count": 232,
        "potentially_affected": "Visual Studio Code deployments using the Bicep extension's Deploy Bicep File command.",
        "dse_recommendation": "DSE recommends making the editor's authentication context an explicit pre-deployment check.",
        "primary_source": {
            "name": "Create Bicep files with Visual Studio Code - Azure Resource Manager | Microsoft Learn",
            "url": "https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/visual-studio-code",
            "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>The Bicep deployment command in Visual Studio Code uses the editor&#8217;s built-in authentication API rather than cloud profiles in bicepconfig.json. Microsoft directs custom-cloud sign-in through the Microsoft accounts extension&#8217;s Microsoft Sovereign Cloud setting. The documented deployment flow does not support multiple signed-in accounts at the same time. <a href=\"https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/visual-studio-code\" target=\"_blank\" rel=\"noopener noreferrer\">Microsoft Learn</a>.</p>\n<h2>Applicability</h2>\n<p>Apply this review to deployment initiated from the editor, not to an Azure CLI command running in a terminal. Identify the intended cloud, account and subscription before choosing the deployment action. Do not treat a repository cloud profile as proof of the editor&#8217;s current sign-in destination.</p>\n<h2>DSE recommendation</h2>\n<p>DSE recommends making the editor&#8217;s authentication context an explicit pre-deployment check. Review the Microsoft accounts cloud setting, complete the intended sign-in and confirm the subscription offered by the deployment flow. Keep this separate from reviewing template parameters or the compiler version. If the displayed identity or destination differs from the approved target, stop before creating resources and resolve the context mismatch.</p>\n<h2>Verification</h2>\n<p>Use an approved nonproduction target to inspect the sign-in and subscription-selection experience. Record the selected cloud and sanitized identity information with the intended target, then verify the selected resource group before authorizing a deployment. Repeat the context check after switching clouds or accounts. Do not accept a successful local build as evidence that the editor is authenticated to the correct Azure environment.</p>\n<h2>Official references</h2>\n<p><a href=\"https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/visual-studio-code\" target=\"_blank\" rel=\"noopener noreferrer\">Microsoft Learn</a>. Source retrieved September 9, 2026.</p>",
        "content_text": "Source facts\nThe Bicep deployment command in Visual Studio Code uses the editor’s built-in authentication API rather than cloud profiles in bicepconfig.json. Microsoft directs custom-cloud sign-in through the Microsoft accounts extension’s Microsoft Sovereign Cloud setting. The documented deployment flow does not support multiple signed-in accounts at the same time. Microsoft Learn.\nApplicability\nApply this review to deployment initiated from the editor, not to an Azure CLI command running in a terminal. Identify the intended cloud, account and subscription before choosing the deployment action. Do not treat a repository cloud profile as proof of the editor’s current sign-in destination.\nDSE recommendation\nDSE recommends making the editor’s authentication context an explicit pre-deployment check. Review the Microsoft accounts cloud setting, complete the intended sign-in and confirm the subscription offered by the deployment flow. Keep this separate from reviewing template parameters or the compiler version. If the displayed identity or destination differs from the approved target, stop before creating resources and resolve the context mismatch.\nVerification\nUse an approved nonproduction target to inspect the sign-in and subscription-selection experience. Record the selected cloud and sanitized identity information with the intended target, then verify the selected resource group before authorizing a deployment. Repeat the context check after switching clouds or accounts. Do not accept a successful local build as evidence that the editor is authenticated to the correct Azure environment.\nOfficial references\nMicrosoft Learn. Source retrieved September 9, 2026.",
        "content_markdown": "## Source facts\n\nThe Bicep deployment command in Visual Studio Code uses the editor’s built-in authentication API rather than cloud profiles in bicepconfig.json. Microsoft directs custom-cloud sign-in through the Microsoft accounts extension’s Microsoft Sovereign Cloud setting. The documented deployment flow does not support multiple signed-in accounts at the same time. [Microsoft Learn](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/visual-studio-code).\n\n## Applicability\n\nApply this review to deployment initiated from the editor, not to an Azure CLI command running in a terminal. Identify the intended cloud, account and subscription before choosing the deployment action. Do not treat a repository cloud profile as proof of the editor’s current sign-in destination.\n\n## DSE recommendation\n\nDSE recommends making the editor’s authentication context an explicit pre-deployment check. Review the Microsoft accounts cloud setting, complete the intended sign-in and confirm the subscription offered by the deployment flow. Keep this separate from reviewing template parameters or the compiler version. If the displayed identity or destination differs from the approved target, stop before creating resources and resolve the context mismatch.\n\n## Verification\n\nUse an approved nonproduction target to inspect the sign-in and subscription-selection experience. Record the selected cloud and sanitized identity information with the intended target, then verify the selected resource group before authorizing a deployment. Repeat the context check after switching clouds or accounts. Do not accept a successful local build as evidence that the editor is authenticated to the correct Azure environment.\n\n## Official references\n\n[Microsoft Learn](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/visual-studio-code). 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-245-select-the-editor-s-cloud-before-deploying-bicep-from-visual-studio-code/",
                "url": "https://update.dsesecurity.com/updates/dse-20260909-245-select-the-editor-s-cloud-before-deploying-bicep-from-visual-studio-code/",
                "isPartOf": {
                    "@id": "https://update.dsesecurity.com/#website"
                },
                "lastReviewed": "2026-09-09"
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://update.dsesecurity.com/updates/dse-20260909-245-select-the-editor-s-cloud-before-deploying-bicep-from-visual-studio-code/#breadcrumbs",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "DSE Updates",
                        "item": "https://update.dsesecurity.com/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Select the editor's cloud before deploying Bicep from Visual Studio Code",
                        "item": "https://update.dsesecurity.com/updates/dse-20260909-245-select-the-editor-s-cloud-before-deploying-bicep-from-visual-studio-code/"
                    }
                ]
            },
            {
                "@type": [
                    "Article",
                    "TechArticle"
                ],
                "@id": "https://update.dsesecurity.com/updates/dse-20260909-245-select-the-editor-s-cloud-before-deploying-bicep-from-visual-studio-code/#article",
                "identifier": "https://update.dsesecurity.com/updates/dse-20260909-245-select-the-editor-s-cloud-before-deploying-bicep-from-visual-studio-code/",
                "url": "https://update.dsesecurity.com/updates/dse-20260909-245-select-the-editor-s-cloud-before-deploying-bicep-from-visual-studio-code/",
                "headline": "Select the editor's cloud before deploying Bicep from Visual Studio Code",
                "description": "Does a bicepconfig.json cloud profile select the cloud used by the editor's deployment command?",
                "abstract": "Does a bicepconfig.json cloud profile select the cloud used by the editor's deployment command?",
                "articleBody": "Source facts\nThe Bicep deployment command in Visual Studio Code uses the editor’s built-in authentication API rather than cloud profiles in bicepconfig.json. Microsoft directs custom-cloud sign-in through the Microsoft accounts extension’s Microsoft Sovereign Cloud setting. The documented deployment flow does not support multiple signed-in accounts at the same time. Microsoft Learn.\nApplicability\nApply this review to deployment initiated from the editor, not to an Azure CLI command running in a terminal. Identify the intended cloud, account and subscription before choosing the deployment action. Do not treat a repository cloud profile as proof of the editor’s current sign-in destination.\nDSE recommendation\nDSE recommends making the editor’s authentication context an explicit pre-deployment check. Review the Microsoft accounts cloud setting, complete the intended sign-in and confirm the subscription offered by the deployment flow. Keep this separate from reviewing template parameters or the compiler version. If the displayed identity or destination differs from the approved target, stop before creating resources and resolve the context mismatch.\nVerification\nUse an approved nonproduction target to inspect the sign-in and subscription-selection experience. Record the selected cloud and sanitized identity information with the intended target, then verify the selected resource group before authorizing a deployment. Repeat the context check after switching clouds or accounts. Do not accept a successful local build as evidence that the editor is authenticated to the correct Azure environment.\nOfficial references\nMicrosoft Learn. Source retrieved September 9, 2026.",
                "datePublished": "2026-09-10T00:27:51+00:00",
                "dateModified": "2026-09-10T01:20:46+00:00",
                "mainEntityOfPage": {
                    "@id": "https://update.dsesecurity.com/updates/dse-20260909-245-select-the-editor-s-cloud-before-deploying-bicep-from-visual-studio-code/"
                },
                "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-245-select-the-editor-s-cloud-before-deploying-bicep-from-visual-studio-code/#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": "Select the editor's cloud before deploying Bicep from Visual Studio Code"
                },
                "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": 232,
                "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": "Create Bicep files with Visual Studio Code - Azure Resource Manager | Microsoft Learn",
                    "url": "https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/visual-studio-code"
                }
            }
        ]
    }
}