We are planning to migrate from Managed to SaaS. Many user accounts and user groups are stored in the Managed cluster. We plan to migrate this information to the SaaS environment using Monaco. Our first step is to download all registered user accounts from the Managed cluster.
I executed the following command.
monaco account download --manifest manifest.yaml
But an error occurred and the download failed.
2024-06-11T13:11:18+09:00 info Monaco version 2.14.0
2024-06-11T13:11:18+09:00 info Loading manifest "manifest.yaml". Restrictions: groups=[], environments=[]
2024-06-11T13:11:18+09:00 error Error: failed to download any resources from accounts [] - not creating download folder
2024-06-11T13:11:18+09:00 error error logs written to .logs\20240611-131118-errors.log
I think there is a problem with the Manifest.yaml I created, but I cannot solve it and am having trouble.
@AntonPineiro Thank you for your comment. Your comment is certainly correct. However, the target Managed Cluster has not been updated to the latest version, so SaaS Upgrade Assistant cannot be used. For these reasons, I decided to use Monaco.
@Shirai monaco does not support the Dynatrace Managed Cluster Management APIs where the user groups and accounts are stored. So it’s not possible to download it. Management of users and groups is different between Managed and SaaS.
You will need to download it manually using Cluster Management APIs and then you can generate the configuration for Monaco to define and update the accounts and groups in SaaS.
Thank you for your comment.
I understand that it is not possible to download account information from a managed cluster using Monaco.
I would like to download it using the User management API. https://docs.dynatrace.com/managed/shortlink/account-api-users
For export the users and groups from managed you have to use this doc (users and groups)
And as Julius says management of users and groups is different between Managed and SaaS.
So be careful because the groups that were in Managed do not match with SaaS groups and also, for the new APIs in Grail the way to authenticate changes; now you have to use the bearer token.
@erh_inetum Thank you for your comment.
As you pointed out, the API I provided does not allow me to extract information about Managed clusters. I will try using the API you provided.
@Shirai the docs are confusing, still there are parts of the SaaS-only docs which exist in Managed. Feel free to submit improvement (on the bottom of the docs page there is feedback button for this).