Azure / Azure/bicep

environment() function is missing latest metadata

Open
#2,385 0 comments 0 reactions 0 assignees View on GitHub
intermediate language
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 2h
Merged PRs (30d)
79

Description

**Bicep version**
n/a

**Describe the bug**
The environment() function can be used to pull information about the current cloud, primary use case is endpoints that vary across clouds. As new endpoints are added, they are often not added to this function that is backed by this api: https://management.azure.com/metadata/endpoints?api-version=2019-05-01

**Additional context**
We need a process to keep this updated, in the meantime, we can use this issue to track things we identify are missing.

Contributor guide

Open the contributing guide

Research direction

The issue identifies the management.azure.com metadata endpoint as the source for environment() data, but names no implementation file or test. Start by locating the environment() implementation and comparing its supported metadata with that endpoint; done would require a defined way to keep the function's metadata current, plus coverage for the missing information.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.