Skip to content

ArtMeij/bicep-progress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub stars GitHub license GitHub issues

🚀 Bicep Deployment Progress

Terraform-like deployment experience for Bicep in your Azure DevOps pipeline.

Adds:

  • 📊 Progress bar
  • 🎨 Colored output
  • 🔄 Live deployment tracking
  • 📦 Resource-level visibility

✨ Features

  • Works with:

    • az deployment sub create
    • az deployment group create
  • Real-time polling of ARM operations

  • Progress based on deployment operations

  • Shows:

    • Running resources
    • Completed resources
    • Failed resources
  • Timeout protection


🔧 Why?

Bicep deployments:

  • Are asynchronous
  • Provide limited feedback
  • Feel like a "black box"

This project adds visibility and control.


🚀 Quick Start

Subscription deployment

- template: templates/deploy-bicep-sub.yml
  parameters:
    azureServiceConnection: my-connection
    deploymentName: my-deployment
    location: northeurope
    templateFile: main.bicep
    parameterFile: main.bicepparam

Resource group deployment

- template: templates/deploy-bicep-rg.yml
  parameters:
    azureServiceConnection: my-connection
    resourceGroupName: my-rg
    deploymentName: my-deployment
    templateFile: main.bicep
    parameterFile: main.bicepparam

📊 Example Output

===== 12:01 | Elapsed: 2 min =====
==== Overall status: Running ====
[████████████--------] 60% (6/10)

Running:
acr
keyvault

Completed:
vnet
subnet



⚠️ Limitations

  • Progress % is based on ARM operations (not exact)
  • Total number of operations may change during deployment
  • Uses polling (no native streaming from Azure)

🧠 How it works

  1. Start deployment with --no-wait
  2. Poll deployment operations
  3. Calculate progress from operation states
  4. Render progress bar + resource states

🛠️ Requirements

  • Azure CLI
  • jq
  • Bash

🤝 Contributing

PRs welcome!


📄 License

MIT

About

Terraform-like deployment experience for Azure Bicep.

Resources

License

Stars

7 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages