Skip to content
Discussion options

You must be logged in to vote

@alfredrafles You can either completely delete the components, or you can use the conditional parameter approach.

Add a new parameter like USE_FEATURE_X in main.parameters.json, similar to USE_MULTIMODAL:
https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/infra/main.parameters.json#L206

Then in main.bicep, add a parameter useFeatureX, and use that with if conditions to conditionally bring in what you want. See useMultimodal for an example.

Bicep can be a bit tricky as sometimes you also need to use conditionals INSIDE the already conditional modules, due to how it evaluates properties.

Then run "azd env set USE_FEATURE_X false" before running "azd up" or "azd provision".

I…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nicholasdbrady
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants