pulumi / pulumi-converter-arm

Apache License 2.0
3 stars 0 forks source link

ARM Conversion error #1

Open RDavis3000 opened 2 months ago

RDavis3000 commented 2 months ago

What happened?

onverting from arm... Converting to dotnet... ================================================================================ The Pulumi CLI encountered a code generation error. This is a bug! We would appreciate a report: https://github.com/pulumi/pulumi/issues/ Please provide all of the below text in your report. ================================================================================ Pulumi Version: v3.95.0 warning: main.pp:171,5-29: unsupported attribute 'supportsHttpsTrafficOnly'; unsupported attribute 'supportsHttpsTrafficOnly' error: main.pp:68,104-112: unknown function 'listKeys'; error: main.pp:72,104-112: unknown function 'listKeys'; warning: main.pp:45,5-26: unsupported attribute 'clientAffinityEnabled'; unsupported attribute 'clientAffinityEnabled' warning: main.pp:46,5-14: unsupported attribute 'httpsOnly'; unsupported attribute 'httpsOnly' warning: main.pp:47,5-9: unsupported attribute 'kind'; unsupported attribute 'kind' warning: main.pp:48,5-13: unsupported attribute 'location'; unsupported attribute 'location' warning: main.pp:49,5-9: unsupported attribute 'name'; unsupported attribute 'name' warning: main.pp:50,5-24: unsupported attribute 'publicNetworkAccess'; unsupported attribute 'publicNetworkAccess' warning: main.pp:51,5-17: unsupported attribute 'serverFarmId'; unsupported attribute 'serverFarmId' warning: main.pp:52,5-15: unsupported attribute 'siteConfig'; unsupported attribute 'siteConfig' warning: main.pp:90,5-9: unsupported attribute 'tags'; unsupported attribute 'tags' warning: main.pp:92,5-27: unsupported attribute 'virtualNetworkSubnetId'; unsupported attribute 'virtualNetworkSubnetId' warning: main.pp:95,5-10: unsupported attribute 'allow'; unsupported attribute 'allow' warning: main.pp:98,5-10: unsupported attribute 'allow'; unsupported attribute 'allow' warning: main.pp:101,5-24: unsupported attribute 'IsManualIntegration'; unsupported attribute 'IsManualIntegration' warning: main.pp:102,5-12: unsupported attribute 'RepoUrl'; unsupported attribute 'RepoUrl' warning: main.pp:103,5-11: unsupported attribute 'branch'; unsupported attribute 'branch' warning: main.pp:104,5-30: unsupported attribute 'deploymentRollbackEnabled'; unsupported attribute 'deploymentRollbackEnabled' warning: main.pp:105,5-30: unsupported attribute 'gitHubActionConfiguration'; unsupported attribute 'gitHubActionConfiguration' warning: main.pp:122,5-19: unsupported attribute 'isGitHubAction'; unsupported attribute 'isGitHubAction' warning: main.pp:123,5-16: unsupported attribute 'isMercurial'; unsupported attribute 'isMercurial' warning: main.pp:126,5-13: unsupported attribute 'location'; unsupported attribute 'location' warning: main.pp:127,5-22: unsupported attribute 'resourceGroupName'; unsupported attribute 'resourceGroupName' warning: main.pp:130,5-14: unsupported attribute 'audiences'; unsupported attribute 'audiences' warning: main.pp:134,5-11: unsupported attribute 'issuer'; unsupported attribute 'issuer' warning: main.pp:135,5-22: unsupported attribute 'resourceGroupName'; unsupported attribute 'resourceGroupName' warning: main.pp:136,5-12: unsupported attribute 'subject'; unsupported attribute 'subject' warning: main.pp:149,5-9: unsupported attribute 'kind'; unsupported attribute 'kind' warning: main.pp:150,5-13: unsupported attribute 'location'; unsupported attribute 'location' warning: main.pp:151,5-9: unsupported attribute 'name'; unsupported attribute 'name' warning: main.pp:152,5-20: unsupported attribute 'numberOfWorkers'; unsupported attribute 'numberOfWorkers' warning: main.pp:153,5-8: unsupported attribute 'sku'; unsupported attribute 'sku' warning: main.pp:157,5-9: unsupported attribute 'tags'; unsupported attribute 'tags' warning: main.pp:159,5-15: unsupported attribute 'workerSize'; unsupported attribute 'workerSize' warning: main.pp:160,5-17: unsupported attribute 'workerSizeId'; unsupported attribute 'workerSizeId' error: could not generate output program: failed to bind program

Example

See above

Output of pulumi about

See above

Additional context

Was trying to convert an ARM from a live site, hit this new wall.

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).

Frassle commented 2 months ago

Looks like the important error here is unknown function 'listKeys'.

There isn't currently a function in codegen that would list keys of a map. The terraform converter has to deal with a similar situation with the TF function keys and it currently emits that as a notImplemented call. See https://github.com/pulumi/pulumi-converter-terraform/blob/main/pkg/convert/testdata/programs/builtin_functions/pcl/main.pp#L666-L669.

We should add an intrinsic for this, it's clearly needed but in the short term this is an arm converter bug.