Skip to content

Add Bicep version of the Terraform code#14

Draft
lopezleandro03 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-13
Draft

Add Bicep version of the Terraform code#14
lopezleandro03 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-13

Conversation

Copilot AI commented May 28, 2025

Copy link
Copy Markdown

This PR adds a complete Bicep implementation that mirrors the existing Terraform infrastructure, enabling users to choose their preferred IaC tool for Azure DevCenter deployments.

Changes

  • Created a parallel infra-bicep directory structure with all necessary Bicep templates:

    • main.bicep - Main deployment template
    • modules/devcenter_project.bicep - Project deployment module
    • modules/devcenter_environment.bicep - Environment type definition module
    • modules/devcenter_key_vault.bicep - Key Vault module
    • modules/devcenter_logging.bicep - Logging module
    • main.parameters.json - Parameters file template
  • Added Bicep configuration support:

    • Created azure.yaml.bicep as an alternative configuration for Azure Developer CLI
    • Added hooks/azd-bicep-hook.sh script to support Bicep deployment
  • Updated documentation:

    • Added instructions for deploying with Bicep directly
    • Added section on switching between Terraform and Bicep
    • Updated requirements to include Azure Bicep CLI

Usage

Users can now choose between Terraform and Bicep by copying the appropriate azure.yaml file:

# For Bicep deployment
cp azure.yaml.bicep azure.yaml

# For Terraform deployment (default)
# Use the default azure.yaml

All parameters remain the same between both implementations, ensuring a consistent experience.

Fixes #13.

Warning

Firewall rules blocked me from connecting to one or more addresses

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

  • aka.ms
    • Triggering command: bicep lint /home/REDACTED/work/azd-devcenter/azd-devcenter/infra-bicep/main.bicep (dns block)
    • Triggering command: bicep lint /home/REDACTED/work/azd-devcenter/azd-devcenter/infra-bicep/modules/devcenter_logging.bicep (dns block)
    • Triggering command: bicep lint /home/REDACTED/work/azd-devcenter/azd-devcenter/infra-bicep/modules/devcenter_key_vault.bicep (dns block)
  • app.aladdin.microsoft.com
    • Triggering command: /usr/bin/../../opt/az/bin/python3 -Im azure.cli bicep --version (dns block)
    • Triggering command: /usr/bin/../../opt/az/bin/python3 -Im azure.cli bicep lint /home/REDACTED/work/azd-devcenter/azd-devcenter/infra-bicep/main.bicep (dns block)
  • cdn.fwupd.org
    • Triggering command: /usr/bin/fwupdmgr refresh (dns block)

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


💡 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.

Co-authored-by: lopezleandro03 <12474226+lopezleandro03@users.noreply.github.com>
Copilot AI changed the title [WIP] Create a Bicep version of the Terraform code Add Bicep version of the Terraform code May 28, 2025
Copilot AI requested a review from lopezleandro03 May 28, 2025 13:29
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.

Create a Bicep version of the Terraform code

2 participants