This message was deleted.
# azure
s
This message was deleted.
m
devices.getIotHubResource
returns a result with eventHubEndpoints. However, for putting the endpoint in a vault you might need to use the Azure Key Vault directly, since Pulumi is meant to manage resources, not objects in the data plane.
f
Thanks @melodic-tomato-39005, but what do you mean use the Azure Key Vault directly? Do you mean manually? How would you else automate it? I am stringing together a lot of resources that need to communicate with each other and if I quickly want to spin up new stack I wouldn't want there to be any manual work involved?
but thanx that worked like a charm
m
I meant using the official azure KV SDK in your code, alongside Pulumi.
f
ah, so this is not recommended? I should use a kv sdk to do so in stead? that would also let me have less resources in pulumi as every secret is now a resource...
Copy code
new azure.keyvault.Secret(name, {
  name,
  value,
  keyVaultId: this.resource.id,
});
m
Actually, it seems like my response was not quite correct. While Pulumi does indeed not support 100% of the KV data plane, it looks like creating secrets should be fine. That being said, if you wouldn’t want your secrets as Pulumi resources, you’re always free to use the KV SDK in parallel to Pulumi.
👍 1