I'm trying to create a keyvault secret ```let vaul...
# azure
a
I'm trying to create a keyvault secret
Copy code
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
hmm, that’s not a helpful error message. Sorry about that.
a
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
Hi @adamant-waiter-67103 Could you please where exactly you find the solution to this, a sI’m facing the same issue.
a
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
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.
231 Views