Azure / Azure/bicep

environment() suffixes missing for numerous services (documents, websites, cognitiveservices, openai, search)

Open
#12,482 9 comments 0 reactions 0 assignees View on GitHub
tech debt
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

**Describe the bug**

We would like to use environment() to generate the correct DNS zone names in our Bicep across zones.
Right now we'd need to have three options for each service and then parameterize based on Azure Global/China/Govt.

(https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-dns#azure-services-dns-zone-configuration)

**To Reproduce**

https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions-deployment#example-1

You can see these replicated in the Bicep extension.

**Additional context**

Related issues:

* https://github.com/Azure/bicep/issues/9839
* https://github.com/Azure/bicep/issues/2999
* https://github.com/Azure/bicep/issues/4449

Contributor guide

Open the contributing guide

Research direction

Start with the Bicep environment() example in the deployment-functions documentation and compare its supported suffixes with the Azure private endpoint DNS zone configuration. Then inspect the corresponding definitions in the Bicep extension and the related issues for existing patterns. Done means environment() returns the correct DNS zone names for the documents, websites, cognitiveservices, openai, and search services across Azure zones.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.