Hi Guys. We have migrated our C# Pulumi Stack code...
# general
d
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
You could try
--exclude-protected
that will void any protected resources to be deleted or recreated
d
@bright-plastic-66961 'pulumi up' doesnt have --exclude-protected switch