Question
How do I update the CDN version on my Akumina site? Is there a way to automate updating the CDN version across all my subsites?
Answer
The CDN version is specific to the site itself, so in order to get the updated CDN version across multiple subsites, each one needs to be updated.
You can manually update the site's CDN version through the site's modern settings panel. This is best for single site updates or testing on a single site. The steps to do this are below (Updating the CDN version - Manually).
It is also possible to automate this setting change across multiple subsites by following the steps listed below (Automating updating the CDN version across all subsites).
Updating the CDN version - Manually
- From the front end of the site, open the Akumina tray and open the debug panel.
- From the debug panel, navigate to the "Modern" tab on the left and enable the "Toggle Command Bar" setting.
- Once this setting is set, click "Close" to close the debug panel.
- This will show the page "Edit" button at the top right of the page.
- Click the "Edit" button displayed. This will open the site's modern settings panel. Here, you can manually update the CDN version.
- Once this setting has been updated, click the "Save" button to save your changes.
- Once completed, navigate back to the Debug panel's "Modern" tab to hide the "Edit" button. (See steps 1-3)
Automating updating the CDN version across all subsites
- Download the file package attached to this article.
- Modify the "inventory.sites.json" file located in the 'SiteDefinitions/MultiDeployment' folder.
- Add the URL of the sites you want to modify, separated with a comma.
- Example:
-
- Edit the "run.bat" file in the provided package to add in the tenant information specific to your environment.
- username - should be set to the user that has admin permissions to site collections
- passwd - password of the user above
- ppmgrurl - App Manager url that needs to go to SPA configuration(this value can't be empty)
- cdnversion - CDN version you want to update
- tenantid
- envdir - path to the script where run.bat is on local machine
- Save the file, and run the "run.bat" file locally.