Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

Bicep

Bicep - Json format

< >

Bicep is a json format created in 2020 by Anthony Martin.

#323on PLDB 3Years Old 4.3kUsers
0Books 0Papers 3kRepos

Bicep is a Domain Specific Language (DSL) for deploying Azure resources declaratively.


Example from the web:
@minLength(3) @maxLength(11) param storagePrefix string param storageSKU string = 'Standard_LRS' param location string = resourceGroup().location var uniqueStorageName = '${storagePrefix}${uniqueString(resourceGroup().id)}' resource stg 'Microsoft.Storage/storageAccounts@2019-04-01' = { name: uniqueStorageName location: location sku: { name: storageSKU } kind: 'StorageV2' properties: { supportsHttpsTrafficOnly: true } } module webModule './webApp.bicep' = { name: 'webDeploy' params: { skuName: 'S1' location: location } } output storageEndpoint object = stg.properties.primaryEndpoints

Keywords in Bicep

targetScope resource module param var output for in if existing

Language features

Feature Supported Token Example
Conditionals ✓
Comments ✓
// A comment
MultiLine Comments ✓ /* */
/* A comment
*/
Line Comments ✓ //
// A comment
objective-j.html · bicep.html · ecl.html

View source

- Build the next great programming language · Search · Day 214 · About · Blog · Acknowledgements · Traffic · Traffic Today · GitHub · feedback@pldb.com