Skip to content

Instantly share code, notes, and snippets.

@johnlokerse
Created March 17, 2024 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnlokerse/a8f8104bd0da193d1f22305d63465c77 to your computer and use it in GitHub Desktop.
Save johnlokerse/a8f8104bd0da193d1f22305d63465c77 to your computer and use it in GitHub Desktop.
Create your own function in Azure Bicep with user-defined functions blog
func funcPersonNameAndAge(name string, age int) string => 'My name is ${name} and my age is ${age}'
output outPersonInformation string = funcPersonNameAndAge('John Doe', 31)
/*
Outputs:
'My name is John Doe and my age is 31'
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment