I have been playing around with Azure Bicep for deploying my infrastructure to Azure.
If you are new to Bicep, please take a look at Azure/bicep: Bicep is a declarative language for describing and deploying Azure resources (github.com).
I want to write Cosmos connection strings to Azure Key Vault.
I am using Bicep modules.
I have a Bicep module for creating secrets in Azure Key Vault.
I am using syntax supported in ARM templates to get my connection strings, with some help of variables, which I pass in.
I search for this frequently, for some reason, just cannot remember it, so I record it here, more for me, but hopefully it helps another colleague out on their journey with Bicep.
Thanks and God bless!