Azure / Azure/bicep

Use FQN in functions on src/examples

Open
#2,120 1 comment 0 reactions 0 assignees View on GitHub
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.**

I was a little confused/frustrated when a modification of an example did not work.

![image](https://user-images.githubusercontent.com/952392/113364183-b4a99980-9307-11eb-8fc2-6cf7a3ff33e4.png)

after some minutes I realize that I was declaring the variable again at the top:

`param environment string = 'dev'`

so, I was overwriting the function. Using the autocomplete I found I could just use az.environment()

**Describe the solution you'd like**

I think it would be better if we use FQN functions in some examples where common function/variable names could be interpolated, like environment. Example:

![image](https://user-images.githubusercontent.com/952392/113364282-f2a6bd80-9307-11eb-8a16-a33661bffd23.png)

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the examples under src/examples and identify uses of common function or variable names such as environment that can be shadowed. Update the affected examples to use fully qualified function names, and confirm the examples no longer rely on ambiguous unqualified references.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.