Skip to content

Add comprehensive ARM templates for Azure Container Registry and infrastructure#8

Merged
MoimHossain merged 1 commit intomasterfrom
copilot/fix-2
Aug 26, 2025
Merged

Add comprehensive ARM templates for Azure Container Registry and infrastructure#8
MoimHossain merged 1 commit intomasterfrom
copilot/fix-2

Conversation

Copy link
Contributor

Copilot AI commented Aug 26, 2025

This PR implements comprehensive Azure Resource Manager (ARM) templates for deploying Azure Container Registry and supporting infrastructure for the netcore-microservice-tutorial project.

What's Added

Core ARM Templates

  • acr-template.json - Dedicated Azure Container Registry template with configurable SKU tiers (Basic/Standard/Premium)
  • main-template.json - Complete infrastructure template including ACR, App Service Plan, Log Analytics workspace, and Storage Account
  • Parameter files for both templates with sensible defaults and customization options

Deployment Automation

  • Cross-platform deployment scripts - Both Bash (Linux/macOS) and PowerShell (Windows) scripts for automated deployment
  • Template validation script - Pre-deployment validation to catch errors early
  • Error handling and user prompts - Automatic resource group creation and comprehensive error checking

CI/CD Integration

  • GitHub Actions workflows for infrastructure deployment and Docker image builds
  • Multi-service build pipeline that builds and pushes API, SPA, and HA-Proxy images to ACR
  • Manual deployment triggers with configurable parameters

Documentation

  • Comprehensive README in the azure-templates/ directory with usage examples
  • Updated main README with infrastructure deployment instructions
  • Clear parameter documentation and deployment examples

Key Features

The ARM templates support:

  • Multiple ACR SKU tiers with appropriate defaults
  • Optional infrastructure components (can enable/disable App Service Plan, Log Analytics)
  • Resource tagging for better organization and cost tracking
  • Secure defaults with HTTPS-only storage and proper network configurations
  • Unique naming with automatic suffix generation to avoid conflicts

Usage Examples

Deploy just the Azure Container Registry:

cd azure-templates
./deploy-acr.sh my-resource-group

Deploy complete infrastructure:

cd azure-templates
./deploy-infrastructure.sh my-resource-group

Validate templates before deployment:

cd azure-templates
./validate-templates.sh

This implementation fulfills the roadmap items mentioned in the README for "Docker swarm automation template (Azure RM templates)" and "Azure Container registry", providing a complete infrastructure-as-code solution for the microservice deployment pipeline.

Fixes #2.


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

@MoimHossain MoimHossain marked this pull request as ready for review August 26, 2025 06:40
@MoimHossain MoimHossain merged commit 7de17e1 into master Aug 26, 2025
1 check passed
Copilot AI changed the title [WIP] RM Templates for Azure container registry Add comprehensive ARM templates for Azure Container Registry and infrastructure Aug 26, 2025
Copilot AI requested a review from MoimHossain August 26, 2025 06: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.

RM Templates for Azure container registry

2 participants