Hi all! I have a question, how do I manually add a...
# general
b
Hi all! I have a question, how do I manually add an attribute to a resource that is then serialized into the actual REST API call that Pulumi executes? There's a resource in pulumi_azure_native that basically only has one attribute missing (not exposed in the public API). I tried modifying the dict attribute of the resource, however this is then not fed into the REST call
p
Have you checked in the azure (classic) package if the resource is available there (with all the attributes you need)?
b
Yes! I have checked the azure_native provider (the resource at all doesn't exist in the classic package), and the specific version does not have the correct attributes since the API is not publicly exposed yet
p
Aha, cutting edge! What kind of resource is this? We've been falling back on the classic one for a few resources as they haven't been available in the native one
b
https://github.com/Azure/prometheus-collector/blob/main/AddonArmTemplate/FullAzureMonitorMetricsProfile.json#L85-L116 As you can see, they have defined a "prometheusForwarder" block there (that does not exist in the public API spec)
o
@billowy-engine-58246 for Azure, I don't think it's possible to change the RPC calls. That's generally not something Pulumi allows. This looks like it might be undocumented in Azure's REST API Specifications. https://github.com/Azure/azure-rest-api-specs/blob/0202d2702fbe09d8d4abb3d16cec18f[…]crosoft.Insights/stable/2021-04-01/dataCollectionRules_API.json Do you mind creating an issue on the azure-rest-api-specs repository or a feature request on azure-native?