My working through the Microsoft Docs learning path for Deploy and manage resources in Azure by using Bicep and associated learning paths.
Playground at https://aka.ms/bicepdemo (official) or https://playgroundbicep.azurewebsites.net/ (community hosted).
Install Bicep manually after installing Azure PowerShell. See Instructions.
Connect:
Get-AzSubscription
$context = Get-AzSubscription -SubscriptionId {subscription Id}
Set-AzContext $context
If using training sandbox:
$context = Get-AzSubscription -SubscriptionName 'Concierge Subscription'
Set-AzContext $context
Then:
Set-AzDefault -ResourceGroupName {resource group Id}
Deploy:
New-AzResourceGroupDeployment -TemplateFile main.bicep -environmentType nonprod
View deployments:
Get-AzResourceGroupDeployment -ResourceGroupName {resource group Id} | Format-Table