💪 Bicep (Azure)hard
4. An Azure resource
Declare an Azure resource group in Bicep: resource rg 'Microsoft.Resources/resourceGroups@2021-04-01' = { … } Give the body: • name — the string 'rg-demo' • location — the string 'eastus'
How to approach this
The heart of Bicep: `resource SYMBOL 'TYPE@API-VERSION' = { … }`. `rg` is a symbolic name you use to reference it elsewhere. The single-quoted string is the resource type plus its API version. The `= { … }` body is a Bicep object (single quotes, newline-separated fields).
main.bicep