Skip to content

Does an existing resource need an API version in declaration? #9033

Answered by anthony-c-martin
stan-sz asked this question in Ideas
Discussion options

You must be logged in to vote

With the exception of the .id, .name, .type & .apiVersion (which are code-genned by Bicep), a reference() function is required to orchestrate a GET request against the RP - which requires an api-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 about existing 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…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by stan-sz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants