Skip to content

Add Bicep IaC option alongside Terraform for azd deployments#11

Draft
Copilot wants to merge 3 commits intoiacfrom
copilot/add-bicep-iac-option
Draft

Add Bicep IaC option alongside Terraform for azd deployments#11
Copilot wants to merge 3 commits intoiacfrom
copilot/add-bicep-iac-option

Conversation

Copy link

Copilot AI commented Dec 16, 2025

Adds Bicep templates as an alternative Infrastructure as Code option for Azure deployments with azd CLI, maintaining parity with existing Terraform infrastructure.

New Bicep Templates (infra/bicep/)

  • main.bicep - Subscription-scoped orchestration template
  • modules/container-registry.bicep - ACR with admin auth
  • modules/log-analytics.bicep - Log Analytics workspace
  • modules/container-apps-environment.bicep - Container Apps Environment
  • modules/container-app.bicep - Reusable container app module

Configuration

  • azure.bicep.yaml - Alternative azd config using Bicep provider

Usage

# Switch to Bicep
cp azure.bicep.yaml azure.yaml
azd up

# Revert to Terraform
git checkout azure.yaml

Infrastructure Deployed

Both providers deploy identical resources:

  • Resource Group, ACR (Basic), Log Analytics (30-day retention)
  • Container Apps Environment
  • Backend (0.5 vCPU, 1GB) and Frontend (0.25 vCPU, 0.5GB) Container Apps

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • aka.ms
    • Triggering command: /usr/local/bin/bicep bicep build main.bicep (dns block)
    • Triggering command: /usr/local/bin/bicep bicep build main.bicep --stdout (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

I want to add bicep IaC option to use with azd cli, while preserving terraform as well. Please add bicep templates that mirror the terraform scripts to build and deploy both backend and frontend.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Dec 16, 2025
Copilot AI and others added 2 commits December 16, 2025 03:46
Co-authored-by: yortch <4576246+yortch@users.noreply.github.com>
Co-authored-by: yortch <4576246+yortch@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Bicep IaC option for azd CLI with Terraform Add Bicep IaC option alongside Terraform for azd deployments Dec 16, 2025
Copilot AI requested a review from yortch December 16, 2025 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants