Does an existing resource need an API version in declaration? #9033
-
Can the use of |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Also mentioned in #622 (comment) |
Beta Was this translation helpful? Give feedback.
-
With the exception of the #622 has some suggestions that'll work for both You're probably aware, but for the sake of other people reading this discussion - one common misconception is that the platform stores the API version associated with a resource. In fact, it is purely a means of describing the data contract associated with a request - to provide a way of introducing changes without impacting existing API consumers. As a result, even when performing a |
Beta Was this translation helpful? Give feedback.
With the exception of the
.id
,.name
,.type
&.apiVersion
(which are code-genned by Bicep), areference()
function is required to orchestrate a GET request against the RP - which requires anapi-version
to be specified.#622 has some suggestions that'll work for both
existing
and deployed resources alike, but I can't think of anything special aboutexisting
that would allow us to not require the api version.You're probably aware, but for the sake of other people reading this discussion - one common misconception is that the platform stores the API version associated with a resource. In fact, it is purely a means of describing the data contract associated with a request - to provide a way…