Skip to content

Best way to include an external definition into existing bicep file #5477

Answered by brwilkinson
mgreisen asked this question in Q&A
Discussion options

You must be logged in to vote

I have been using this for my VMSS extensions for some time now.

https://docs.microsoft.com/en-us/azure/templates/microsoft.compute/virtualmachinescalesets?tabs=bicep#virtualmachinescalesetextension

The disadvantage of using that approach is that the extensionprofile/extensions does not support conditions.

https://github.com/brwilkinson/AzureDeploymentFramework/blob/main/ADF/bicep/VMSS-VM.bicep#L302

However, looking at the docs, it does look as if you can use the following, which is identical to Virtual Machines. I did some basic testing and it does appear to work fine.

https://docs.microsoft.com/en-us/azure/templates/microsoft.compute/virtualmachinescalesets/extensions?tabs=bicep

So base…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@brwilkinson
Comment options

Answer selected by mgreisen
Comment options

You must be logged in to vote
1 reply
@brwilkinson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants