Title
a

adamant-waiter-67103

08/10/2022, 7:30 PM
I'm trying to create a keyvault secret
let vaultPostgresPassword =
        Pulumi.AzureNative.KeyVault.Secret(namer "postgresPwd",
            Pulumi.AzureNative.KeyVault.SecretArgs(
                Properties = Pulumi.AzureNative.KeyVault.Inputs.SecretPropertiesArgs(
                    Value = io postgresPwd.Result,
                    Attributes = input (Pulumi.AzureNative.KeyVault.Inputs.SecretAttributesArgs(Enabled = input true)),
                    ContentType = input "text/plain"
                ),
                ResourceGroupName = io resourceGroup.Name,
                SecretName = input "postgresPassword",
                VaultName = io keyVault.Name
            ))
I'm getting this message
error: autorest/azure: Service returned an error. Status=400 Code="ParameterNotSpecified" Message="The parameter value is not specified."
I'm not sure why, I'm running
pulumi up --yes --refresh -d --skip-preview -v 3
and aren't getting any more information
b

billowy-army-68599

08/10/2022, 7:31 PM
hmm, that’s not a helpful error message. Sorry about that.
a

adamant-waiter-67103

08/10/2022, 7:35 PM
is there any way i can debug this further?
I've got this down to a difference between F# and C#
it was because of missing
input
surrounding
SecretPropertiesArgs
.... that was annoying as heck
🙌 2
d

dry-judge-83479

08/12/2022, 10:36 AM
Hi @adamant-waiter-67103 Could you please where exactly you find the solution to this, a sI’m facing the same issue.
a

adamant-waiter-67103

08/12/2022, 10:45 AM
You’ve got to look over all your code, and for every property that requires
Input<T>
make sure you wrap the assignment input
d

dry-judge-83479

08/12/2022, 10:50 AM
error: constructing secrets manager of type "cloud": secrets (code=InvalidArgument): keyvault.BaseClient#Decrypt: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadParameter" Message="The parameter is incorrect.\r\n
My issue is related to keyvault key but not secrets. Did you face the same error/.
@adamant-waiter-67103 Thanks for your time and reply.