Skip to content

Conversation

@souvikghosh04
Copy link
Contributor

@souvikghosh04 souvikghosh04 commented Dec 17, 2025

Summary

Adds automated PowerShell scripts for deploying Data API builder to Azure Container Apps (ACA) and Azure Container Instances (ACI) with complete infrastructure setup.

Closes: - #3001

Changes

New sample scripts

  • azure-container-apps-dab-starter.ps1 - Deploy to Azure Container Apps
  • azure-container-instances-dab-starter.ps1 - Deploy to Azure Container Instances

Features

  • End-to-end automation: Creates resource group, ACR, SQL Server/Database, and container deployment
  • Configurable resources: CPU (0.25-4 cores), memory (0.5-16 GB), auto-scaling for ACA (0-30 replicas)
  • Test data loading: Automatically loads sample database schema from DatabaseSchema-MsSql.sql
  • Security: Configures SQL firewall rules for Azure services and client IP
  • Config management: Generates DAB configuration with connection strings (blob storage for ACA, ARM template for ACI)
  • Comprehensive README: Documentation with examples, parameters, troubleshooting, and comparison table

Usage

Azure Container Apps (ACA)

Basic configuration

$password = ConvertTo-SecureString "<YourSecurePassword>" -AsPlainText -Force

.\azure-container-apps-dab-starter.ps1 `
    -SubscriptionId "<your-subscription-id>" `
    -ResourceGroup "rg-dab-aca" `
    -ResourcePrefix "mydab" `
    -SqlAdminPassword $password

Higher configuration

$password = ConvertTo-SecureString "<YourSecurePassword>" -AsPlainText -Force

.\azure-container-apps-dab-starter.ps1 `
    -SubscriptionId "<your-subscription-id>" `
    -ResourceGroup "rg-dab-prod" `
    -ResourcePrefix "proddb" `
    -SqlAdminPassword $password `
    -Location "westus2" `
    -SqlServiceTier "S2" `
    -ContainerCpu 1 `
    -ContainerMemory 2 `
    -MinReplicas 2 `
    -MaxReplicas 10

Azure Container Instances (ACI)

Basic configuration

$password = ConvertTo-SecureString "<YourSecurePassword>" -AsPlainText -Force

.\azure-container-instances-dab-starter.ps1 `
    -SubscriptionId "<your-subscription-id>" `
    -ResourceGroup "rg-dab-aci" `
    -ResourcePrefix "mydab" `
    -SqlAdminPassword $password

Higher configuration

$password = ConvertTo-SecureString "<YourSecurePassword>" -AsPlainText -Force

.\azure-container-instances-dab-starter.ps1 `
    -SubscriptionId "<your-subscription-id>" `
    -ResourceGroup "rg-dab-dev" `
    -ResourcePrefix "dabdev" `
    -SqlAdminPassword $password `
    -Location "eastus2" `
    -ContainerCpu 4 `
    -ContainerMemory 8

@souvikghosh04 souvikghosh04 added this to the Dec 2025 milestone Dec 17, 2025
@souvikghosh04 souvikghosh04 self-assigned this Dec 17, 2025
@souvikghosh04 souvikghosh04 added documentation Improvements or additions to documentation samples Sample code, doc and references to help users labels Dec 17, 2025
@souvikghosh04 souvikghosh04 linked an issue Dec 17, 2025 that may be closed by this pull request
@souvikghosh04 souvikghosh04 marked this pull request as ready for review December 17, 2025 06:10
Copilot AI review requested due to automatic review settings December 17, 2025 06:10
@souvikghosh04
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive PowerShell deployment scripts for Data API Builder (DAB) to Azure, streamlining the end-to-end deployment process for both Azure Container Apps and Azure Container Instances. The scripts automate infrastructure setup, database provisioning, test data loading, and DAB configuration generation.

  • Added two fully automated PowerShell starter scripts for quick Azure deployment
  • Scripts handle complete infrastructure setup including ACR, SQL Server, and container deployment
  • Enhanced documentation with detailed usage examples, troubleshooting, and comparison tables

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 17 comments.

File Description
samples/azure/readme.md Comprehensive documentation update with quick start guides, parameter descriptions, examples, troubleshooting, and service comparison tables
samples/azure/azure-container-apps-dab-starter.ps1 New automated deployment script for Azure Container Apps with auto-scaling, HTTPS, and managed environment support
samples/azure/azure-container-instances-dab-starter.ps1 New automated deployment script for Azure Container Instances with simpler single-instance architecture for dev/test scenarios

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@Aniruddh25 Aniruddh25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Posting comments for the review so far - done upto autogeneration of resource prefix in the aca script

@souvikghosh04 souvikghosh04 moved this from Todo to Review In Progress in Data API builder Dec 18, 2025
Copy link
Collaborator

@Aniruddh25 Aniruddh25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving since this is sample only. Consider the suggestions in a followup.

@souvikghosh04 souvikghosh04 enabled auto-merge (squash) December 22, 2025 10:18
@souvikghosh04
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@souvikghosh04
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation samples Sample code, doc and references to help users

Projects

Status: Review In Progress

Development

Successfully merging this pull request may close these issues.

Checkin scripts for deploying DAB in ACI and ACA

5 participants