Skip to content

Fix filtered subnet ID expansion for existing VNets#3856

Merged
polatengin merged 14 commits into
mainfrom
polatengin/2159-the-arguments-for-filter-are-not-in-the-expected-format-or-type
Jul 7, 2026
Merged

Fix filtered subnet ID expansion for existing VNets#3856
polatengin merged 14 commits into
mainfrom
polatengin/2159-the-arguments-for-filter-are-not-in-the-expected-format-or-type

Conversation

@polatengin

Copy link
Copy Markdown
Member

PR Summary

Fixes Bicep template expansion for filtered runtime resource property collections, including existing virtual network subnets.

This supports expressions like:

filter(vnet.properties.subnets, s => s.name == subnetName)[0].id

Closes #2159

PR Checklist

  • PR has a meaningful title
  • Summarized changes
  • Change is not breaking
  • This PR is ready to merge and is not Work in Progress
  • Rule changes
    • Unit tests created/ updated
    • Rule documentation created/ updated
    • Link to a filed issue
    • Change log has been updated with change under unreleased section
  • Other code changes
    • Unit tests created/ updated
    • Link to a filed issue
    • Change log has been updated with change under unreleased section

@polatengin polatengin added this to the v2.0.0 milestone Jul 6, 2026
@polatengin polatengin self-assigned this Jul 6, 2026
@polatengin polatengin requested a review from a team as a code owner July 6, 2026 23:07
@polatengin polatengin added the enhancement New feature or request label Jul 6, 2026
@polatengin polatengin linked an issue Jul 6, 2026 that may be closed by this pull request
BernieWhite
BernieWhite previously approved these changes Jul 7, 2026

@BernieWhite BernieWhite left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Nice work @polatengin.

Comment thread docs/changelog.md Outdated
@polatengin polatengin merged commit 9859203 into main Jul 7, 2026
14 checks passed
@polatengin polatengin deleted the polatengin/2159-the-arguments-for-filter-are-not-in-the-expected-format-or-type branch July 7, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The arguments for 'Filter' are not in the expected format or type

2 participants