https://pulumi.com logo
Title
r

rough-truck-68200

06/02/2021, 6:59 AM
hello there! I am experiencing issues executing pulumi up with the newly introduced
soft deleted
state for Computer Vision resources, and need to manually purge the resource before running pulumi (the resource was previously created and deleted with pulumi), is anyone aware of it? and if so, any property I need to use or known workaround?
error: creating Cognitive Services Account. cognitiveservices.AccountsClient#Create: Failure sending request: StatusCode=409 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="FlagMustBeSetForRestore" Message="An existing resource with ID '{resource id here}' has been soft-deleted. To restore the resource, you must specify 'restore' to be 'true' in the property. If you don't want to restore existing resource, please purge it first."
any help is appreciated thanks!
t

tall-librarian-49374

06/02/2021, 7:25 AM
What would you expect to behave differently?
r

rough-truck-68200

06/02/2021, 7:47 AM
I would expect pulumi to be able to handle that status and recreate the resource again, since the resource was deleted by pulumi and is part of the stack already. Or do you think I am missing something?