Product Api - Check Entity Exists #13933
Replies: 2 comments 1 reply
-
Not sure what you're trying to achieve here - are you trying to build conditionals like if-then-else after initial provisioning or does this fail even before you actually have deployed anything? Since Bicep is a compile time language some issues will only occur deploy time with no option to branch off in other directions. |
Beta Was this translation helpful? Give feedback.
-
Quirky behavior to rely on http HEAD - don't see that very often. I haven't tried running this through the debugger but it doesn't sound like Bicep as a DSL fails. Could be something in the Microsoft.ApiManagement resource provider in the Bicep Type layer. (Someone needs to maintain a translation layer backend.) I would recommend filing an issue here to get it triaged: https://github.com/Azure/bicep-types-az |
Beta Was this translation helpful? Give feedback.
-
I'm trying to check that an API entity is associated with a Product entity.
At deployment time, it fails with
Looking at the rest API, the method to check entity exists should be HEAD and not GET (https://learn.microsoft.com/en-us/rest/api/apimanagement/product-api/check-entity-exists?view=rest-apimanagement-2022-08-01&tabs=HTTP). There is no property on this entity.
Is this an issue in bicep/ARM ?
Beta Was this translation helpful? Give feedback.
All reactions