05/12/2023, 12:41 PM
Hi, I need help with Pulumi, C# and AzureNative: I'm creating "azure-native.resources.Deployment" ( Properties.Parameters in documentation are null. I need to pass some parameters, especially Output<string> var deloyment = new Deployment(deploymentName, new DeploymentArgs { DeploymentName = deploymentName, ResourceGroupName = resourceGroup.Name, Properties = new AzureResourcesDeployment.Inputs.DeploymentPropertiesArgs { Mode = AzureResourcesDeployment.DeploymentMode.Incremental, TemplateLink = new AzureResourcesDeployment.Inputs.TemplateLinkArgs { Id = templateSpecVersion.Id }, Parameters = new Dictionary<string, object> { { "storageAccountName", Output.Create("sadeployed1") } } } }); Here, for example I passed "StorageAccountName" parameter, its valur is Output<string>. However I'm getting following error: error: Code="InvalidRequestContent" Message="The request content was invalid and could not be deserialized: 'Error converting value \"sadeployed1\" to type 'Azure.Deployments.Core.Definitions.DeploymentParameterDefinition'. Path 'properties.parameters.storageAccountName', line 1, position 84.'."