Allow setting of api-version from resource request (C#?) #1877
Labels
kind/enhancement
Improvements or new features
resolution/duplicate
This issue is a duplicate of another issue
Hello!
Issue details
ATM there is no way to use azure custom resource providers in order to create custom azure resources. Not a "pulumi" custom resource.
Explanation: "azure custom resource provider" is in a preview, and the API version is "2018-09-01-preview". The creation/registration of the custom provider resource works as expected.
The problem appears, when we try to use that custom provider. We are using "azure resource" in order to do that. It appears that the way pulumi works, it builds the azure rest call/url by using the api-version of the "custom resource" class - and as such it produces the error:
Technically, the error is expected - as the "2019-05-01" is the azure api version of the "Resource" class, but the api call should carry the api-version of the "resource provider" - "2018-09-01-preview".
There is no "2018-09-01-preview" api schema for "Resource", so no way to use that specific implementation.
A possible solutions:
We are using C#, but maybe the problem exists with other languages too.
I'm willing to contribute, but I'll need guidance where to look for extension points.
Affected area/feature
AzureNative
The text was updated successfully, but these errors were encountered: