Azure / Azure/bicep

Inconsistent formatting of environment() suffix

Open
#5,103 6 comments 14 reactions 0 assignees View on GitHub
intermediate language
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

**Bicep version**
Bicep CLI version 0.4.1008

**Describe the bug**
'privatelink.blob.${environment().suffixes.storage}' results in 'privatelink.blob.core.windows.net'
'privatelink.${environment().suffixes.keyvaultDns}' results in 'privatelink..blob.core.windows.net' (double dot)

**To Reproduce**
'privatelink.blob.${environment().suffixes.storage}' results in 'privatelink.blob.core.windows.net'
'privatelink.${environment().suffixes.keyvaultDns}' results in 'privatelink..blob.core.windows.net' (double dot)

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the two environment().suffixes examples with Bicep CLI 0.4.1008 and compare the generated results. Trace the handling of the storage and keyvaultDns suffixes; done means the keyvaultDns case no longer produces a double dot while the storage case remains correctly formatted.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.