Template spec


Post deployment scripts with Bicep, template specs and Azure DevOps

Everybody that creates Bicep modules and deploys them through Azure Pipelines, faced challenges where it was required to do some post deployment activity. Probably you have solved the issue by either running an Azure CLI task, or Azure PowerShell task to do such activity. While this has it's benefits, in this blog you'll learn about a different approach by leveraging the deploymentScripts resource. Later in the blog, you are going to publish it as a template spec, which can be consumed using the Service Principal in Azure Pipelines giving you the benefit to version your modules. Of course, if you want to follow along, you are going to need some pre-requisites