Skip to content

The DSC concat() function behaves differently than the ARM concat() function #271

@michaeltlombardi

Description

@michaeltlombardi

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

The implementation of the DSC concat() function accepts integers and strings, concatenating them.

fn accepted_arg_types(&self) -> Vec<AcceptedArgKind> {
vec![AcceptedArgKind::String, AcceptedArgKind::Integer]
}

The concat() function in ARM templates operates only on strings and arrays, and the input must be either strings or arrays. For strings, it returns a single concatenated string. For arrays, it returns a single concatenated array.

Expected behavior

DSC `concat()` behaves the same as ARM template `concat()`.

Actual behavior

DSC `concat()` supports different concatenating integers and not arrays.

Error details

No response

Environment data

N/A

Version

Latest build from main

Visuals

No response

Metadata

Metadata

Assignees

Labels

Issue-BugSomething isn't working

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions