Often times I had to change something in our infra code workflow and needed a quick way to test a specific bicep file.
In the terminal, make sure you are in the folder which has the bicep file. And then use the deployment command as shown below and it will deploy it to the resource group you have mentioned. And pass in the parameters thats needed for the bicep.
az deployment group create –resource-group my-resource-group –template-file .\storage.bicep –parameters environmentName=something environmentType=dev environmentLocation=eastus2 resourceGroupName=my-resource-group
Its trivial. But often times I forget this deployment command and the idea of changing a bicep file intimidated me. But with this command, we can verify the bicep file itself does everything we expect and we can add this to the overall workflow later