Managed solutions – what are the benefits?

By | June 7, 2021

So, we all know how managed solutions vs unmanaged solutions discussions used to be raging a few years ago.

Then Microsoft stepped in to make it clear that managed solutions are recommended for production environments and unmanaged ones are only supposed to be used in development.

This is where things currently stand, and this is what we are all recommending to the clients, but, come to think of it, I would probably want to see more explanations than “it’s better because we say so”.

Unfortunately, looking at the ALM demos, this is how it usually is:

  • Managed solutions should be used in production
  • Managed solutions can be deleted
  • Components in the managed solutions can be locked down
  • Managed solutions support layering

I see how the ability to “delete” managed solutions can be important for ISV-s. Although, as soon as we create a dependency in our own solutions on those third-party managed solutions that ability becomes pretty much non-existent.

I also see how it may be useful to lock down some components of the managed solutions, but possibly, it’s an ISV thing, too? I’ve never used it for the internally developed solutions, even for the “core” ones.

Layering, although it’s an interesting concept, is, arguably, one feature that can mess up quite a few things. There is a lot of functionality in Power Platform that had to be implemented around layering to support it better (solution history screen, component layers screen, merging, etc). Just to hypothesize, would not it be easier not to have layering? As in, make everything unmanaged and leave it to the admins/developers to make sure solutions are installed in the right sequence.

I guess the core problem is “merging”, and all that layering is meant to facilitate/resolve merging issues (or, at least, to put some rules around how it’s done). Given that the conflicts are still not getting resolved in the same way it’s done with pro-code, though, I wonder if it would be better/easier to just go with “most recent change wins” approach (which is, basically, “unmanaged”). After all, how often would you actually even try resolving a conflict directly in the XML file when merging in the source control? I would just overwrite in those cases.

So, I wonder, is there someone there who can clearly state the advantages of managed solutions, possibly with good examples, so that we could all say “yes, you nailed it”? Would be great to have this kind of closure to the old question of why should we be actually using managed solutions.

4 thoughts on “Managed solutions – what are the benefits?

  1. Shidin Haridas

    One point top of my head is the ability to “cleanly” introduce new solution versions.
    By that, I mean the following:
    1. I have solution version 1.0 in PROD
    2. I now have a newer version, version 2.0.
    3. I can import version 2.0 as a holding solution into PROD. Since it is a holding solution, both versions 1.0 and 2.0 exist in PROD now. (albeit the solution components to remove will also persist at this stage)
    4. Users do their testing and are happy with version 2.0, at which point, I apply the solution upgrade.
    OR, if case of any issues etc., I delete version 2.0 and this ensures version 1.0 comes back into effect.

    Full disclaimer, this was a big win when doing manual deployments.
    In the automated CI/CD processes, preference is to restore the entire environment back (at the risk of losing some data)

    1. Alex Shlega Post author

      This could be useful, but this creates a few problems:
      – Once the holding solution is removed, your remaining data might get stuck in the inconsistent state (as in, your holding solution had a flow which was updating a field. Now, without that Flow, that field is supposed to have a different value based on the previous version “business logic”)
      – I suspect it depends on the client whether this approach is possible. Most of the times, I would probably prefer to UAT as much as possible, then do production deployment, then apply fixes as necessary (if it all goes south somehow, then restore from the backup, but that would be my absolutely last resort). This actually explains why I don’t see big issues with unmanaged – in practice, I rarely use solution-based “rollback”

  2. Paul

    I’m having the same thoughts about managed vs unmanaged, my problem would be with Microsoft’s “recommendations”. Are they just recommendations or is this going to be the future? Will the unmanaged solutions be discontinued?

    1. Alex Shlega Post author

      I don’t believe they’ll be discontinued, since we need them for development. At the same time, Microsoft has been very consistent lately in recommending managed solutions for production, so, just purely from the support perspective, it might be better to use managed solution in the non-development environments.


Leave a Reply

Your email address will not be published. Required fields are marked *