https://pulumi.com logo
#general
Title
# general
r

red-airline-54646

08/18/2023, 12:16 PM
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

billowy-army-68599

08/18/2023, 12:17 PM
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

red-airline-54646

08/18/2023, 12:19 PM
oh yes, it's in a loop. thanks for the input i know now what to do :)