Skip to content

Instantly share code, notes, and snippets.

@johnlokerse
Created March 17, 2024 19:43
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/c3191d819e5716505c3e32d644c58bc3 to your computer and use it in GitHub Desktop.
Save johnlokerse/c3191d819e5716505c3e32d644c58bc3 to your computer and use it in GitHub Desktop.
Create your own function in Azure Bicep with user-defined functions blog
@description('''
Pass arguments to use in the deployment script. Default: Empty Object
Example value:
{
name: 'value'
value: 'value'
}
''')
param parArgument object
@description('Delimiter variable is used for the join() method')
param parDelimiter = ' '
var varJoined = !empty(parArgument) ? join(map(items(parArgument), arg => '-${arg.key} ${arg.value}'), varDelimiter) : ''
@description('''
Example output:
-name value -value value
''')
output outArguments string = varJoined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment