Add environment() as bicep parameter file function
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.
We shouldn't be flagging this in .bicepparam files, so I've submitted #13608 to address this.
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.