https://pulumi.com logo
Title
a

ambitious-continent-10899

03/30/2023, 12:10 AM
I am searching for something in Pulumi to do
az keyvault network-rule add
. I am attempting to use https://www.pulumi.com/registry/packages/azure-native/api-docs/keyvault/vault/ However I am getting this error:
error: cannot create already existing resource
for the virtualNetworkRule.
w

witty-car-82146

03/31/2023, 1:14 PM
Hello @ambitious-continent-10899, I believe you already had a virtualNetworkRule resource with the same name of the one you want to create, can you share me the code I think I can help.
a

ambitious-continent-10899

03/31/2023, 2:32 PM
Hai, turns out I had to import the KV in order to work. I think Pulumi was unaware of the state of KV because I was adding to an existing KV.
w

witty-car-82146

03/31/2023, 2:33 PM
good found Andrezza