Azure / bicep

Bicep is a declarative language for describing and deploying Azure resources
MIT License
3.25k stars 754 forks source link

Configuration set pattern drops all intellisense #4745

Open gavinsteinhoff opened 3 years ago

gavinsteinhoff commented 3 years ago

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

I followed this guide 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.

alex-frankel commented 3 years ago

There are a couple pieces that need to be considered when enabling this: