https://pulumi.com logo
#dotnet
Title
# dotnet
f

future-kite-91191

02/20/2020, 4:08 PM
Quick question, is this the proper way to get ref to an existing Azure KeyVault secret in C#?
Pulumi.Azure.KeyVault.Secret.Get("Redis--Password", keyVault.Id).Vault
b

better-rainbow-14549

02/20/2020, 4:16 PM
i've not used the dotnet packages but this is the pulumi API you should be using: https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/azure/keyvault/#getSecret
the x.resourcetype.get() methods require the provider ID whereas the x.resourceGet() methods take a name / location
f

future-kite-91191

02/20/2020, 4:20 PM
The does not seem to be a .Net
GetSecret
@tall-librarian-49374 any suggestions here?
t
f

future-kite-91191

02/20/2020, 4:36 PM
Great, works like a charm!
Thanks