An automation approach that spells out every step in order, like a run of CLI commands. Declarative templates are the opposite, stating only the desired end result.
Read more: Microsoft Learn
In the Ultra Transcenders books
Each book explains Imperative in context, with comparison tables and the common traps.
Terms in this definition
- LIKE
Compares strings with a pattern that can contain the % and _ wildcards. Because it only understands character patterns, searching big volumes of text this way is much slower than using full-text search.
- Azure CLI
Command-line tool for managing Azure that runs on any platform; examples include
az login,az storage queueandaz policy state trigger-scan. - Declarative
Describing the result wanted (as Terraform configurations and Bicep files do) and letting tooling work out the steps. Microsoft favours this over imperative scripting.
Related terms
- Azure Automation
Azure service that runs runbooks, scripts that carry out imperative steps such as scaling Azure Virtual Desktop host pools. It is not an infrastructure-as-code tool.