Quick question, is this the proper way to get ref ...
# dotnet
f
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
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
The does not seem to be a .Net
GetSecret
@tall-librarian-49374 any suggestions here?
t
f
Great, works like a charm!
Thanks