Skip to content
Discussion options

You must be logged in to vote

What you're seeing looks like a Microsoft.Network Resource Provider bug rather than anything wrong with your Bicep template.

On the Bicep side, @onlyIfNotExists() just emits @options.onlyIfNotExists on the resource in the compiled ARM JSON (languageVersion: 2.0), which tells the ARM deployment engine to include If-None-Match: * on the PUT to Microsoft.Network/privateEndpoints. Bicep doesn't know anything about the generated NIC.

Because Microsoft.Network/privateEndpoints creates that auto-generated Microsoft.Network/networkInterfaces resource during the PUT, the combination in your table (generated NIC created, Blob connection approved, then endpoint failing with PreconditionFailedResourc…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by LouisapAtWork
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