Azure / Azure/bicep

Reference properties within the same resource (i.e 'this')

Open
#1,787 2 comments 1 reaction 0 assignees View on GitHub
enhancement revisit
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

**Is your feature request related to a problem? Please describe.**
There are times where I need to reference properties within a resource I am creating. Currently it is not possible to reference these properties forcing me to create variables/parameters to contain the information that needs to be shared.

Current
![image](https://user-images.githubusercontent.com/21132293/110399652-cca93880-803b-11eb-9f34-6efe457670cf.png)

**Describe the solution you'd like**
Be able to reference properties within the same resource.

Here is an example of a syntax. The actual syntax my vary best on what is best for the team/community.
![image](https://user-images.githubusercontent.com/21132293/110399584-b1d6c400-803b-11eb-9e7e-7eec5696af91.png)

** Other info **
Similar to #1470, but expand it beyond resource id, location, and name to other properties.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by reviewing the resource-reference behavior discussed in #1470 and the surrounding Bicep design, then define the supported syntax and semantics for referencing other properties in the same resource; done means the agreed scenarios work without intermediate variables.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.