Azure Publisher - World Wide
Created by Orckestra
C1 CMS Versions supported
This package requires CMS version 2.0 or newer (Build: 2.0.3919.5834).
Installing Azure Publisher
- Log into the CMS Console as an administrator.
- Go to the "System" perspective.
- Open the folders "Packages" | "Available Packages" | " Composite.Azure".
- Select " Composite.Azure.Publisher" and click "Install".
- Complete the wizard.
Getting blob connection information
To configure Azure Publisher, you need to:
- set up a blob storage on Microsoft Azure and
- get the connection information for this storage:
- the storage account's name
- and access key.
To create a storage on Microsoft Azure:
- Log in to your Microsoft Azure Portal.
- Select New / Data + Storage / Storage account.
- Select Classic for the Deployment model.
- Enter a name for your storage account and select other options where necessary: Subscription, Resource Group, Location.
- Click Create.
Once the storage has been created:
- Copy, or make a note of, the storage account's name and primary access key (All Resources / [your storage account] / Access Keys)
For example:
- name: cmsblob
- access key: f4uLInNSRj9HiP9zP7FeN8dLRusthmdQggufw+yLvmaMLZzyslJzPOG65YfrIPuoKmu7rKEJmszzqHzQpKZx1A=
For more information about getting the blob storage connection information, please see "Prepare on Azure".
Configuring Azure Publisher
When the CMS Console reloads after the installation, in the "Content" perspective, a new element will appear: "Azure Publisher".
- Right-click it and select "Configure".
- Within the "Configuration" group box, fill the following fields:
- Account Name: The Azure blob storage account's name, for example,
cmsblob
. - Account Key: Your Azure storage account's primary access key, for example,
f4uLInNSRj9HiP9zP7FeN8dLRusthmdQggufw+yLvmaMLZzyslJzPOG65YfrIPuoKmu7rKEJmszzqHzQpKZx1A=
.
- Account Name: The Azure blob storage account's name, for example,
- Click "Save".
Configuring publish profiles
Publish profiles define how and what website files are published to the blob storage. Each publish profile must have a unique name and a unique blob container specified.
There two types of publish profiles:
- Primary: A public deployment website will read from the blob container associated with this profile
- Backup: Additional publish profiles, each with its won blob containers for various uses.
To create a primary publish profile:
- From the "Content" perspective, right-click "Azure Publisher" and select "Configure".
- On the "Publish Profiles" tab, below
<PublishProfiles>
:- add a
<Primary></Primary>
element - set its
name
attribute to the name of the profile you like, for example, "CD (Live)". - set its
blobContainerName
attribute to the name of a blob container where the website files are published to.
- add a
- Within the
Primary
element:- add a
<SourceFiles></SourceFiles>
element - within the
<SourceFiles>
element, add one or more<Folder/>
elements - set their
path
attribute to the website folder path to include in publishing, for example, "~/".
- add a
- Click "Save".
Note. Only one primary publish profile can be defined. Normally for the primary profile, you should have one <Folder/>
element set to "~/" (meaning 'all the files').
You can also have none, one or more backup publish profiles. The steps for creating a backup publish profile are almost the same as those for the primary profile, except that you should use the <Backup></Backup>
element instead of <Primary></Primary>
in Step 2.1 above.
When the user clicks the "Publish" or "Republish" button, Azure Publisher runs through all the defined profiles and publish the website data accordingly to respective blob containers in the storage.
Azure Publisher comes with predefined publish profiles: "CD (Live)" for the primary one and "All (Backup)" and "Content (Backup)" for the backup ones.
Show configuration(Please see below for information about <FileTransforms>
and downloadable
used in the example above.)
Transforming files when publishing
Instead of copying all files ‘as is’ to the blob storage, you can configure Azure Publisher to:
- exclude specific files from being copied to the storage (
skip
) and / or - replace a file when copying with the one on the target environment (
skip
+use
)
You should define file transformation rules for each publish profile individually.
- From the "Content" perspective, right-click "Azure Publisher" and select "Configure".
- On the "Publish profile" tab, locate a profile you want to set file transformation rules for.
- Below the
<Primary>
or<Backup>
element, add a<FileTransforms></FileTransforms>
element. - Within the
<FileTransforms>
element, add one or more<File/>
elements. - Set their
skip
attribute to the path to the file to skip. - If you want to replace a file with the one on the target environment, in addition to
skip
, set theuse
attribute to the path to the file on the target environment to use instead. - Click "Save".
By default, the primary publish profile Azure Publisher comes with is set to skip the Composite.Azure.Publisher.config file.
Show configurationSetting up downloadable profiles
The user can have Azure Publisher download the website files from the blob container associated with a specific profile and replace the corresponding files on the staging website.
To make a profile downloadable or non-downloadable:
- From the "Content" perspective, right-click "Azure Publisher" and select "Configure".
- On the "Publish profile" tab, locate a profile you want to make downloadable or non-downloadable.
- Add a downloadable attribute to the
<Primary>
or<Backup>
element. - Set its value to "
true
" or "false
" accordingly. - Click "Save".
The profile will appear on the drop-down "Download" button. If no profile is set as downloadable, the "Download" button will be hidden.
Note. The user must have the "Administrate" permission to see the "Download" button in Azure Publisher.
Version info
- Current version
- 1.0.0
- Package ID
- 02514531-05ff-41c6-b189-aa180f9ad541