My implementations while taking the Azure Bicep course on Microsoft Learn.
When having multiple sandbox subscriptions, first start by listing them using the following command:
az account list --refresh --query "[?contains(name, 'Concierge Subscription')].id" --output table
Then choose the subsciprion to use by calling:
az account set --subscription <id>
Lastly, specify the default resource group for deployment, which can be seen on the Azure portal:
az configure --defaults group=<id>
Then deploy a template by navigating into its directory and running:
az deployment group create -f .\main.bicep
If the template requires a parameter file, use this command:
az deployment group create -f .\main.bicep --parameters main.parameters.dev.json