early-egg-62309
01/21/2021, 2:53 PMpulumi preview
, but pulumi thinks the resources need to be replaced & stops with an error that the resources are protected.
Surely if nothing has changed, then there is no need to replace?
If I try to unprotect in the csharp project, then I still receive an error from pulumi preview
, because the resource is still protected in the stack from the import.
How do I unprotect the imported resource?
Also, because the preview fails abruptly, I cannot see the replacement steps which pulumi thinks are needed, it seems to be null?
PS> pulumi preview --show-replacement-steps -v 3
Previewing update (bot)
View Live: <https://app.pulumi.com/wilsoncg/bot/bot/previews/c75fe0fb-9b27-4d6a-a068-4a7e53a694e0>
Type Name Plan Info
pulumi:pulumi:Stack bot-bot 1 error
+- └─ azure-nextgen:alertsmanagement/latest:SmartDetectorAlertRule Failure Anomalies - RachaelBot4wwyzn replace 1 error
Diagnostics:
azure-nextgen:alertsmanagement/latest:SmartDetectorAlertRule (Failure Anomalies - RachaelBot4wwyzn):
error: Preview failed: refusing to delete protected resource 'urn:pulumi:bot::bot::azure-nextgen:alertsmanagement/latest:SmartDetectorAlertRule::Failure Anomalies - RachaelBot4wwyzn'
pulumi:pulumi:Stack (bot-bot):
error: preview failed