0

I'm trying to import an existing azure-native StorageAccount into Pulumi.

I've used the command given in the docs and it works, but it creates a ton of properties with their default values. I'm trying to get rid of them but I can't seem to do it for these ones: accessTier, allowBlobPublicAccess, allowSharedKeyAccess, enableHttpsTrafficOnly, enableNfsV3, encryption, identity, isHnsEnabled, networkRuleSet

They are all set to their default values, but when I remove them from my C# code Pulumi wants to update them. I tried to remove them manually from the input in state file, but Pulumi still says it want to remove their <null> value.

What makes this worse is that this is not an in-place update, Pulumi wants to replace the StorageAccount with a new one, which is not ok for me.

To test, I created a new storage account from scratch (without those properties) and everything is just the same (C# code, actual properties of account, Pulumi JSON state) and it works fine... but nope, I can't remove those default from the imported account.

Anyone knows why / how to remove those default imported values?

jods
  • 4,581
  • 16
  • 20

0 Answers0