Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM Conversion error #1

Open
RDavis3000 opened this issue May 16, 2024 · 1 comment
Open

ARM Conversion error #1

RDavis3000 opened this issue May 16, 2024 · 1 comment

Comments

@RDavis3000
Copy link

RDavis3000 commented May 16, 2024

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
Copy link
Member

Frassle commented May 16, 2024

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.

@mikhailshilkov mikhailshilkov transferred this issue from pulumi/pulumi May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants