AzExpression.psm1
#Region './_prefixCode.ps1' 0 $Script:Functions = [Azure.Deployments.Expression.Expressions.ExpressionBuiltInFunctions]::new() #EndRegion './_prefixCode.ps1' 2 #Region './public/New-AzGuid.ps1' 0 function New-AzGuid { [CmdletBinding()] param ( [Parameter(Mandatory)] [string[]]$InputStrings ) $parameters = [Azure.Deployments.Expression.Expressions.FunctionArgument[]]::new($InputStrings.Count) for ($i = 0; $i -lt $parameters.Count; $i++) { $parameters[$i] = [Newtonsoft.Json.Linq.JValue]::new($InputStrings[$i]) } $result = $Script:Functions.EvaluateFunction( "guid", $parameters, [Azure.Deployments.Expression.Expressions.ExpressionEvaluationContext]::new() ) return $result.ToString() } #EndRegion './public/New-AzGuid.ps1' 21 #Region './public/New-AzUniqueString.ps1' 0 function New-AzUniqueString { [CmdletBinding()] param ( [Parameter(Mandatory)] [AllowEmptyString()] [string[]]$InputStrings ) $parameters = [Azure.Deployments.Expression.Expressions.FunctionArgument[]]::new($InputStrings.Count) for ($i = 0; $i -lt $parameters.Count; $i++) { $parameters[$i] = [Newtonsoft.Json.Linq.JValue]::new($InputStrings[$i]) } $result = $Script:Functions.EvaluateFunction( "uniqueString", $parameters, [Azure.Deployments.Expression.Expressions.ExpressionEvaluationContext]::new() ) return $result.ToString() } #EndRegion './public/New-AzUniqueString.ps1' 22 |