pulumi / arm2pulumi

Tool to convert Azure ARM templates to Pulumi code
5 stars 3 forks source link

arm2pulumi doesn't handle parameters in Deployment resource #29

Closed pierskarsenbarg closed 11 months ago

pierskarsenbarg commented 3 years ago

Trying to import Microsoft.Resources/deployments and it's not handling the Parameters input (https://www.pulumi.com/docs/reference/pkg/azure-native/resources/deployment/#parameters_csharp)

ARM docs: https://docs.microsoft.com/en-us/azure/templates/microsoft.resources/deployments?tabs=json#deploymentproperties-object

Martvdjagt commented 3 years ago

The issue reported above was solved for me by using the below syntax. var parameters = new Dictionary<string, object> { { "name", new Dictionary<string, object>() { { "value", apiWebsiteName } } } };

Suggestions for improvement:

mikhailshilkov commented 11 months ago

The standalone arm2pulumi tool has been deprecated in favor of the Pulumi CLI built-in command pulumi convert --from arm. Therefore, I'm closing all issues in this repository as "won't fix". Please file any issue related to pulumi convert in https://github.com/pulumi/pulumi/issues/