https://pulumi.com logo
#general
Title
# general
n

numerous-artist-1705

03/21/2021, 8:32 PM
hi all, is partial resource adoption supported in some way? E.G. I have a storage account, part of its configuration includes a network firewall, all is one unique resource in Pulumi (Azure). Is there any way to import an existing storage account and let pulumi create/destroy/update only the network firewall (as properties of the storage resource)? thank you (I'm using .NET, but I figured the question is generic)
b

bored-oyster-3147

03/21/2021, 8:42 PM
If the network firewall is treated as separate properties on a single resource, than no - you can’t do this without also giving your pulumi stack management over the storage account. But if the network firewall is treated as a separate resource, then you could do this without also managing the storage account.
n

numerous-artist-1705

03/21/2021, 8:46 PM
no, it's the same resource, that's the issue
b

bored-oyster-3147

03/21/2021, 10:18 PM
yea then you may be SOL in this case, which kind of sucks. You could import the storage account and mark it as
protected
so that you're pulumi stack would be prevented from ever destroying it without manual intervention, but could update it freely
n

numerous-artist-1705

03/21/2021, 10:47 PM
yeah, that's what I thought, too. I'm surprised I am the only one having this issue, some resources bulk together a lot of parts, part-multitenanted apps must need this a lot. thanks anyway. I guess I'll wait for the dynamic providers.
b

bored-oyster-3147

03/21/2021, 10:52 PM
I don't think pulumi yet has the concept of partial-resource control, but it is interesting and i'm sure you're not the only one that could use it. You could open an issue if there isn't already one and see if you get support.
👍 1
n

numerous-artist-1705

03/22/2021, 8:38 AM
2 Views