We are finally setting up a production JSS and need to move accepted policies, preferences, profiles, etc from the dev JSS to the new production JSS. Besides this one time transfer, we would also like to move things over easily as more development goes on.
Using the APIs, I have some scripts that will get the list of managed preferences (for example), parse that for the names, and then download the xml files for each preference. The problem is that when I try upload those files I get errors. Either "Error in field assignment for profiles" or "The request could not be completed due to a conflict with the current state of the resource".
In the managed preference case this seems to be caused by the preferences being in Managed Preference Profiles that don't exist yet. So I have to strip that info out which makes the process complex enough that I don't know if it is worth automating. I can't upload the MPPs first either as they include the preferences they manage.
How do others handle this? Is there something obvious I am missing or is it really this hard?
