Hi, I refactored a code and I'm expecting `unchang...
# general
r
Hi, I refactored a code and I'm expecting
unchanged
on the pulumi preview. using
--diff
it shows
Resources: 18 unchanged
, however, I'm getting an error saying that
error: Duplicate resource URN 'urn:pulumi:management-sbx::Platform::azure-native:resources:ResourceGroup::management-r.resourcegroup'; try giving it a unique name
any clue?
b
without seeing your code it’s hard to debug, but it’s likely you’re creating the resource in a loop and not providing an index. What’s the code that creates the resource group?
r
oh yes, it's in a loop. thanks for the input i know now what to do :)