powerful-football-81694
03/11/2021, 9:48 PMpulumi up
it fails:
error: Preview failed: refusing to delete protected resource 'urn:pulumi:dev::SvcStacks::azure-native:resources:ResourceGroup::orgflow-stacks-dev-rg'
I can’t do pulumi destroy
either:update
update
sparse-park-68967
03/11/2021, 10:06 PMpowerful-football-81694
03/11/2021, 10:13 PMtall-librarian-49374
03/11/2021, 10:16 PMpowerful-football-81694
03/11/2021, 10:17 PMupdate
Pulumi decides they need to be replacedsparse-park-68967
03/11/2021, 10:23 PMpowerful-football-81694
03/11/2021, 10:26 PMpulumi import
on these 3 resources - successfully
• Run pulumi up
• Preview fails because Pulumi thinks it needs to replace these 3 resources, but they are marked as protected by the import
• Manually removed the protection from the stack using stack export
and stack import
to be able to preview
• Run pulumi preview
which shows my second screenshot abovesparse-park-68967
03/11/2021, 10:34 PMpowerful-football-81694
03/11/2021, 10:35 PMsparse-park-68967
03/11/2021, 10:38 PMpowerful-football-81694
03/11/2021, 10:38 PMsparse-park-68967
03/11/2021, 10:44 PMpulumi up
is happy. Then follow the steps in migration guide (Migrate the resource group - steps 7 through 10)