Skip to content
Discussion options

You must be logged in to vote

Can you clarify your scenario a bit for me?

Do you know (in advance of the deployment starting) if the log analytics workspace has been deployed or not? If it has not been deployed are you going to deploy it as part of this bicep deployment? If the LA workspace was deployed previously, why wasn't diagnostics added at the time of creation?

There is no concept of an "existence check" in bicep. The exists keyword is to get a symbolic reference to a known, previously deployed resource and one that you do not intend to update as part of this deployment.

What we will typically see is the "intent to deploy a resource" expressed as a parameter, and then a conditional check to deploy something bas…

Replies: 3 comments 5 replies

Comment options

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

Comment options

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

Answer selected by alex-frankel
Comment options

You must be logged in to vote
3 replies
@brwilkinson
Comment options

@centur
Comment options

@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
5 participants