https://pulumi.com logo
Title
d

dazzling-sundown-72791

02/22/2023, 9:32 AM
Hi Guys. We have migrated our C# Pulumi Stack code from classic Azure to Azure-Native. Before executing '_pulumi up_' we have deleted classic resource from the stack (pulumi state delete) than imported existing resource to stack using 'pulumi import'. When running '_pulumi up_' Pulumi asks to unprotect Storage resource and than recreates it. In a consequence of recreation data in Azure Storage are being lost. Is there a way to migrate without data loss (we cannot lost data in production)?
b

bright-plastic-66961

02/22/2023, 10:16 AM
You could try
--exclude-protected
that will void any protected resources to be deleted or recreated
d

dazzling-sundown-72791

02/22/2023, 11:03 AM
@bright-plastic-66961 'pulumi up' doesnt have --exclude-protected switch