Hi All, I'm getting an error which is stopping me ...
# general
e
Hi All, I'm getting an error which is stopping me from using pulumi to do anything useful. I have imported a new Azure stack into pulumi from an existing resource group, then created a csharp project and tried
pulumi 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?
Copy code
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