Invalid lists of enums in .NET #16084
Labels
area/codegen
SDK-gen, program-gen, convert
kind/bug
Some behavior is incorrect or out of spec
language/dotnet
What happened?
This is an upstream issue for pulumi/pulumi-azure-native#1180. Codegen for dotnet generates code that doesn't compile for some Azure examples. Unfortunately, among them are some of the important Azure Key Vault examples.
Example
The azure-native provider generates this HCL, pretty-printed from a
github.com/pulumi/pulumi/pkg/v3/codegen/hcl2/model:Body
.The permissions are translated to C# like this (full program attached createVault.json.cs.txt):
Correct would be a union:
Output of
pulumi about
Still occurs with pulumi v3.113.
Additional context
No response
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).
The text was updated successfully, but these errors were encountered: