Azure / Azure/bicep

Add property access to imports

Open
#7,531 0 comments 0 reactions 0 assignees View on GitHub
enhancement extensibility: general availability
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

When using an import statement, I would like to be able to have property access on it.

Ex:
```bicep
import kubernetes from kubernetes {
namespace: 'default'
}

resource redisSecret 'kubernetes.core/Secret@v1' existing = {
metadata: {
name: 'redis'
namespace: kubernetes.namespace
}
properties: {
someSecret: '${kubernetes.namespace}/...'
}
}
```

Contributor guide

Open the contributing guide

Research direction

Start by reading the requested import syntax and the Kubernetes example to identify how the imported value should support namespace property access. Done means the example can use kubernetes.namespace in both the resource property and interpolation, with the behavior defined for import statements.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.