~/week14-iac — bash
# Ch3: first Bicep deploy into the class resource group
# Replace sthyfyourname with a globally unique lowercase name
$ az login
[Authenticated to the HYF tenant]
$ export CLASS_RG=rg-hyf-students
$ # main.bicep already saved in this folder
$ az deployment group create \
--resource-group "$CLASS_RG" \
--template-file main.bicep \
--parameters storageName=sthyfyourname \
--query "{provisioningState:properties.provisioningState, outputs:properties.outputs}" \
-o json
{
"outputs": {
"storageId": {
"type": "String",
"value": "/subscriptions/.../resourceGroups/rg-hyf-students/providers/Microsoft.Storage/storageAccounts/sthyfyourname"
}
},
"provisioningState": "Succeeded"
}