You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On converting the Application Gateway ARM template to BICEP using az bicep decompile the template gets converted with the error "Expression is referring its own declaration"
In the below piece of code for Properties.httpListeners & Properties.requestRoutingRules we need to refer to the appgateway resource that was created. Example for frontendIPConfiguration but these line errors out with above message
App gateway need at least httpListener defined hence not able to create app gateway using BICEP
Unfortunately, app gateways have a very strange resource schema that involves these circular references. This is an API design anti-pattern, so the proper fix is to redesign the service's API. Given this is not is a common API structure, we probably can't have a general fix for this. We would need to special case it.
Unfortunately, app gateways have a very strange resource schema that involves these circular references. This is an API design anti-pattern, so the proper fix is to redesign the service's API. Given this is not is a common API structure, we probably can't have a general fix for this. We would need to special case it.
Thanks, Alex for the response. Is there a way for me to proceed right now? Is there a working BICEP template I can use for Application Gateway?
Just repeat that pattern for each different id property. Make sure you get the type (the first argument correct, as it will change slightly for each id property)
Bicep version
Bicep CLI version 0.4.1272
Describe the bug
On converting the Application Gateway ARM template to BICEP using az bicep decompile the template gets converted with the error "Expression is referring its own declaration"
In the below piece of code for Properties.httpListeners & Properties.requestRoutingRules we need to refer to the appgateway resource that was created. Example for frontendIPConfiguration but these line errors out with above message
App gateway need at least httpListener defined hence not able to create app gateway using BICEP
Below is an sample piece of code
To Reproduce
The text was updated successfully, but these errors were encountered: