pulumi / pulumi-ai

222 stars 15 forks source link

Pulumi AI hallucinating SubnetNetworkSecurityGroupAssociation in Azure Native, the resource is only in azure classic #60

Closed tusharshahrs closed 7 months ago

tusharshahrs commented 7 months ago

What happened?

Pulumi AI is recommending a resource that the azure-native provider doesn't have. SubnetNetworkSecurityGroupAssociation only exists in azure classic. https://www.pulumi.com/ai/answers/is6zrPx2C2CztJ5QZanLod/configuring-azure-network-security-group-associations

Example

The following does NOT exist in azure native: SubnetNetworkSecurityGroupAssociation

Pulumi AI shows this:

const subnetNetworkSecurityGroupAssociation = new azure_native.network.SubnetNetworkSecurityGroupAssociation

The SubnetNetworkSecurityGroupAssociation exists in azure classic here: https://www.pulumi.com/registry/packages/azure/api-docs/network/subnetnetworksecuritygroupassociation/

Output of pulumi about

n/a

Additional context

Pulumi AI is hallucinating a resource that exist in azure classic. This resource does NOT exist in azure-native.

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

wongstein commented 7 months ago

Early investigation showed that Pulumi AI didn't find the right resources to help, and we're working on it!

wongstein commented 7 months ago

Addressed and closed with commit 8dcb71e832b6908533b38dd998a1cf6ac76298dc

pulumi-bot commented 7 months ago

Cannot close issue:

Please fix these problems and try again.