bicep icon indicating copy to clipboard operation
bicep copied to clipboard

Add environment() as bicep parameter file function

Open schaijkw opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. The Bicep Linter is complaining about a disallowed host that cannot be resolved from the bicepparam file.

Describe the solution you'd like Currently there are 2 functions available in bicepparam files, see https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions-parameters-file I would like to see environment() supported as well to resolve this issue and I can apply the fix that is suggested by the Linter.

image

schaijkw avatar Mar 13 '24 16:03 schaijkw

We shouldn't be flagging this in .bicepparam files, so I've submitted #13608 to address this.

anthony-c-martin avatar Mar 13 '24 16:03 anthony-c-martin

With the addition of environment() function in the bicepparam you also benefit from the available suffixes so you can construct an endpoint to a keyvault or storageaccount for example.

schaijkw avatar Jun 26 '24 08:06 schaijkw