Run PowerShell scripts with Azure Bicep

Did you know you can run Azure PowerShell or CLI scripts with Bicep? With Microsoft.Resources/deploymentScripts you can execute scripts in a Bicep deployment. In addition, you can work with the outputs of the script that you ran. This opens loads of automation possibilities and flexibility. What are Deployment Scripts? The deploymentScript resource can run PowerShell … Continue reading Run PowerShell scripts with Azure Bicep

Generate Azure Bicep parameters with Azure CLI or Visual Studio Code

With version 0.7.4 of Azure Bicep, the feature “generate Bicep parameters” was introduced. In this blog, you will read about how to generate parameters from a Bicep template using the Azure CLI or Bicep Visual Studio Code extension. Example Bicep template To illustrate how generating parameters works, I have created an example Bicep template. The … Continue reading Generate Azure Bicep parameters with Azure CLI or Visual Studio Code

Azure Bicep validation in a pull request with Azure DevOps

In this blog I am going to write about how you can automatically validate Bicep template changes inside a pull request in Azure DevOps. This validation step can help identify errors written in a template or parameter file. These errors can be syntactical or input-based errors. The techniques used in this blog are: Azure CLI, … Continue reading Azure Bicep validation in a pull request with Azure DevOps

Create Azure resources using CLI

Microsoft offers several ways to manage your Azure cloud resources. One using the GUI, the Azure Portal, but when you want to use automation to create resources you need something more versatile, for example, the command line. In this blog post, I want to show how to create and manage your Azure resources using Azure … Continue reading Create Azure resources using CLI