Join our Newsletter — 33% off our NHI Course
Architecture & Implementation

Azure Bicep

← Back to Glossary
By NHI Mgmt Group Updated August 28, 2026 Domain: Architecture & Implementation

Azure Bicep is a domain-specific language for defining Azure infrastructure as code. It compiles to Azure Resource Manager templates and is used to describe resources in a repeatable, version-controlled way. In governance terms, Bicep helps teams distinguish codified assets from manually created infrastructure that may be harder to recover.

Expanded Definition

Azure Bicep is best understood as a governance layer for Azure infrastructure because it turns resource intent into version-controlled code that can be reviewed, diffed, and deployed repeatedly. In NHI security, that matters because the same disciplined declaration used for networks, storage, and compute can also describe where identities, permissions, and secret-dependent services are provisioned. As a domain-specific language, Bicep reduces template noise compared with raw ARM templates, but it does not automatically secure the assets it creates. Its value is in making infrastructure changes auditable and recoverable, especially when identity-bearing resources must be recreated after drift, failure, or compromise.

Definitions vary across vendors on whether Bicep is merely an authoring format or a broader operations control, so the practical interpretation should stay narrow: it is code for Azure resource definition, not a substitute for access policy, secrets hygiene, or runtime monitoring. The closest standards framing comes from the NIST Cybersecurity Framework 2.0, which treats repeatability, change control, and asset visibility as core resilience outcomes. The most common misapplication is treating Bicep files as security documentation, which occurs when teams assume declared infrastructure is automatically compliant with the permissions and secret handling actually applied at deployment time.

Examples and Use Cases

Implementing Azure Bicep rigorously often introduces configuration discipline overhead, requiring organisations to weigh faster repeatable deployment against the effort of maintaining clean, reviewable code and secure parameter handling.

  • Declaring a service that uses managed identity so the deployment history shows exactly when the identity was created, updated, or removed.
  • Provisioning Azure Key Vault access paths in code, then reviewing them alongside the risks highlighted in Azure Key Vault privilege escalation exposure.
  • Building ephemeral test environments for agent workloads, where repeatability matters more than long-lived manual configuration.
  • Recreating a compromised environment from source-controlled definitions after incident response, rather than trying to reconstruct it from portal clicks.
  • Using Bicep with Azure deployment pipelines so infrastructure changes can be reviewed like code, consistent with NIST Cybersecurity Framework 2.0 expectations for controlled change.

For Azure-specific threat context, the Storm-2949 Azure Breach and the Microsoft Azure Key Breach show why codified rebuildability matters when identity or key material is exposed.

Why It Matters in NHI Security

Bicep matters in NHI security because infrastructure definitions often determine where NHIs are created, what they can reach, and whether secrets end up embedded in code, parameters, or pipeline variables. That governance boundary is critical: a declarative deployment process improves visibility, but it also creates a single source of truth that can accidentally become a single source of compromise if secret handling is weak. NHIMG research shows that 30.9% of organisations store long-term credentials directly in code, and that pattern is especially dangerous when infrastructure code is treated as a harmless build artifact rather than an access-controlled control plane. The same risk appears in supply chain scenarios described in Miasma and Hades Supply Chain Worms, where automation and trust boundaries collide.

Practitioners should also account for the fact that declared resources can still produce excessive privilege, exposed secrets, and misconfigured identity assignments unless the deployment pipeline enforces those checks. In other words, Bicep helps reveal what should exist, but not whether what exists is safe. Organisations typically encounter this distinction only after a failed recovery, a key exposure, or a breach investigation, at which point Bicep becomes operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST Zero Trust (SP 800-207) and NIST AI RMF set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02Covers secret exposure and mismanaged non-human credentials in code and deployment paths.
NIST CSF 2.0PR.AC-1Access control and identity governance apply to deployment code and Azure resource creation.
NIST Zero Trust (SP 800-207)SC-7Zero Trust depends on tightly scoped resource access and explicit trust boundaries.
NIST AI RMFAI system deployment needs governed infrastructure definitions and change traceability.
OWASP Agentic AI Top 10A2Agentic systems inherit risk from deployment code that grants tool or cloud access.

Scan Bicep pipelines for embedded secrets and enforce external secret references before deployment.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on August 28, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org