How to Programmatically rollout from blueprint to live copies in AEM as cloud service ? | Community
Skip to main content
December 13, 2024
Solved

How to Programmatically rollout from blueprint to live copies in AEM as cloud service ?

  • December 13, 2024
  • 2 replies
  • 1046 views
final RolloutManager.RolloutParams params = new RolloutManager.RolloutParams();
params.master = masterPage;
params.targets = targets;
params.isDeep = false;
params.reset = false;
params.trigger = RolloutManager.Trigger.ROLLOUT;
LOGGER.info("RolloutParams {}.", params.toString());
rolloutManager.rollout(params);


This approach is not working for me, no errors as well
Best answer by SreenivasBr

Please try this - https://medium.com/adobetech/aem-bulk-sites-creation-live-copies-automation-using-wcmcommand-servlet-6aa738dc0a73

I have not tried in AEM as a cloud service though.

2 replies

GabrielMircea
Level 2
December 14, 2024

To programmatically rollout from a blueprint to live copies in AEM as a Cloud Service, the process differs slightly compared to older versions of AEM.

Your current approach using RolloutManager may not work as expected in AEM as a Cloud Service because some of the internal APIs and behaviors are now optimized for the cloud’s distributed architecture.

 

The LiveRelationshipManager API is the preferred way to manage blueprint-to-live copy relationships programmatically. https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/wcm/msm/api/LiveRelationshipManager.html

December 24, 2024

Hey, there was a permission issue for the service user I was using to get resourceResolver, my approach is working as expected

New Member
April 23, 2025

Hi @kaustubatm1, i am also facing the same issue which you have mentioned above can you help me by telling what permission was missing. I am working on my local and using admin user right now.

SreenivasBr
SreenivasBrAccepted solution
Level 4
December 23, 2024
December 24, 2024

Hey, there was a permission issue for the service user I was using to get resource Resolver, my approach is working as expected