Skip to content

Added distinct() function to systemNameSpace and updated baselines#19167

Merged
Likhithakmsft merged 2 commits intomainfrom
feature/distinct_function_new
Apr 13, 2026
Merged

Added distinct() function to systemNameSpace and updated baselines#19167
Likhithakmsft merged 2 commits intomainfrom
feature/distinct_function_new

Conversation

@Likhithakmsft
Copy link
Copy Markdown
Contributor

@Likhithakmsft Likhithakmsft commented Mar 10, 2026

Description

Adds support for the distinct() built-in function in bicep .
The function returns a new array containing only the unique elements from the input.

Example Usage

var values = [1, 2, 2, 3, 1]
var uniqueValues = distinct(values)

output = [1, 2, 3]

Checklist

Microsoft Reviewers: Open in CodeFlow

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 10, 2026

Test this change out locally with the following install scripts (Action run 24361708846)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 24361708846
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 24361708846"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 24361708846
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 24361708846"

@Likhithakmsft Likhithakmsft force-pushed the feature/distinct_function_new branch from 65dcd8f to 84e6a45 Compare April 13, 2026 18:15
@Likhithakmsft Likhithakmsft changed the title Added distinct() function to systemNameSpace and updated baselines - Do not merge Added distinct() function to systemNameSpace and updated baselines Apr 13, 2026
@Likhithakmsft Likhithakmsft marked this pull request as ready for review April 13, 2026 18:16
@Likhithakmsft Likhithakmsft merged commit 5f1d33d into main Apr 13, 2026
79 of 80 checks passed
@Likhithakmsft Likhithakmsft deleted the feature/distinct_function_new branch April 13, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants