Skip to content
Prompt

bicep-deploy — Copilot Instructions

by Azure

AI Summary

Copilot instructions for the bicep-deploy GitHub Action that guides developers through pre-commit workflows and repository structure for Azure Bicep deployments. Useful for teams automating infrastructure-as-code deployments on Azure.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "bicep-deploy — Copilot Instructions" prompt rules to my project.
Repository: https://github.com/Azure/bicep-deploy

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Azure Deploy GitHub Action

Bicep Deploy - Copilot Instructions

This repository contains the bicep-deploy GitHub Action and the shared @azure/bicep-deploy-common package.

Pre-Commit Checklist

Before committing any changes, always run the following commands in order: • Lint fix - Fix any linting issues `bash npm run lint -- --fix ` • Build common package - Build the shared common package `bash cd packages/bicep-deploy-common && npm run build ` • Build full repo - Build the main action `bash cd /path/to/bicep-deploy && npm run build ` • Run all tests - Ensure all tests pass `bash npm test -- --run ` All four steps must pass before committing.

Repository Structure

• src/ - GitHub Action source code • dist/ - Bundled output that GitHub Actions runs (must be committed!) • packages/bicep-deploy-common/ - Shared library used by both the GitHub Action and the Azure DevOps task • test/ - Tests for the GitHub Action • packages/bicep-deploy-common/test/ - Tests for the common package Important: The dist/ folder contains the compiled action code referenced by action.yml (main: dist/index.cjs). This folder must be rebuilt (npm run build) and committed whenever source code changes.

Common Package

The @azure/bicep-deploy-common package is a shared library that provides: • Azure deployment and deployment stack operations • Bicep file compilation • Configuration parsing • Logging and error handling utilities Published Package: https://www.npmjs.com/package/@azure/bicep-deploy-common Important: The GitHub Action and ADO Task consume this package differently: • GitHub Action (this repo): Uses the local file path (packages/bicep-deploy-common/), not the npm version • Azure DevOps Task (microsoft/azure-pipelines-tasks): Uses the published npm version with a pinned version in package.json (e.g., "@azure/bicep-deploy-common": "^0.0.3-dev") When modifying the common package, remember that changes affect both: • The GitHub Action (this repo) - immediately, via local reference • The Azure DevOps BicepDeploy task - after publishing a new npm version and updating the version in the task's package.json

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
AdoptionUnder 100 stars
57 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars57
Forks12
Issues28
Updated1mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more