Azure / Azure/bicep

Configuration set pattern drops all intellisense

Open
#4,745 1 comment 1 reaction 1 assignee Claimed by @alex-frankel View on GitHub
enhancement revisit
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

Is there anyway to get intellisense when using a configuration set pattern?

I followed this [guide](https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/conditional-resource-deployment) but their solution has no intellisense.

I tried many methods, like
```
var environmentVariabless = environment == 'prd' ? environmentConfigurationMap.Production : environmentConfigurationMap.NonProduction
```

But I am losing all intellisense.

I would like to just pass in the environment, and have bicep determine the settings.

The only other method I have is to have two parameter files and having CICD pick which file to use in the deploy command.

I don't know what is best practice, but with the configuration set pattern, I can `loadTextContent` on one file and separate it by environment.

It would also be cool if `loadTextContent` didn't need a compile time constant.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.