Home > Manage Templates > Configure Library Templates
Export to PDFWhen you configure a dynamic service and add a Create library service, you can add the Library template setting to the service and add one or more library templates that will be available to be selected in the service request to create new libraries. The new libraries will be created using the selected library template.
To access Library templates, click the Library templates card on the Profiles & templates page. Turn on the toggle on the Library templates page if you want to enable library templates for your tenant.
To configure library templates, before you start configurations in Cloud Governance, make sure the following preparations have been completed in the Azure portal:
The Cross-Origin Resource Sharing (CORS) configuration is required in your Azure Blob storage. To configure the Cross-Origin Resource Sharing, complete the following steps:
Navigate to your Azure storage in the Azure portal and click Resource sharing (CORS) on the navigation.
Configure the following information:
Allowed origins – Enter https://*.avepointonlineservices.com in the text box.
If your organization is using the Microsoft 365 Government GCC High environment, contact your AvePoint Technical Support to get the value for the Allowed origins.
Allowed methods – Select PUT from the drop-down list.
Allowed headers – Enter content-type,accept,x-ms-* in the text box.
Exposed headers – Enter x-ms-* in the text box.
Max age – Enter 3600 in the text box.

To use your custom library templates, make sure you have already configured the Azure Blob storage and Azure function app in the Azure portal. To configure the Azure Blob storage and function app, click Blob storage and function app on the ribbon, and then configure the following settings in the Blob storage and function app panel:
Azure Blob storage – Specify the following information for the Azure Blob storage configuration:
Container name – Enter the container name.
Account name – Enter the storage account name.
Account key – Enter the storage account key.
Azure function app – Specify the following information for the Azure function app configuration. For details on how to configure a function app in the Azure portal, refer to Create a Function App in the Azure Portal.
Function URL – Enter the function URL of your function app. For details on how to get the function URL, refer to Create a Function App in the Azure Portal.
Add HTTP header – For Cloud Governance to be authenticated with the Azure function app, you can add HTTP headers as you need. The following information are some examples for your reference that can be used for authentication via HTTP header:
The user account that has the permission to access the Azure function app.
The token that can be used to access the Azure function app.
Any of your authorization information that has been encrypted.
To add an HTTP header, click Add custom header, and configure the following information in the Add custom header panel.
HTTP Header – Enter the HTTP header.
Header value – Enter the HTTP header value.
Choose whether to Encrypt sensitive data.
Click Save when you finish all your configurations.
You can also edit an HTTP header already added to the list by clicking the edit button or delete an HTTP header by clicking the delete button.
Click Save when you finish all your configurations.
Once you modify the configured Azure Blob storage information, all imported library templates will be deleted. If the modification is required, make sure you've already copied all existing library templates to the new Blob storage. Otherwise, you need to import the templates again after your modification.
You can import custom library templates to AvePoint Cloud Governance by clicking Import on the ribbon. Then, complete the following steps in the Import library template window:
Import a library template file (.zip or .ps1) – Browse and select a ZIP or PS1 template file to import to AvePoint Cloud Governance. The uploaded file must be in the .zip or .ps1 format.
If the library template to be imported has a duplicate name with an existing one, choose one of the following options and decide how to handle such library templates:
Do not import the library template
Import and overwrite the existing library template
Category – Select a category for the imported library template.
Click OK. You can view the import status and results in the Job monitor.
To edit the category of library templates, complete the following steps:
Select one or more library templates.
Click Edit category on the ribbon.
In the Edit category window, select a new category from the drop-down list for your selected library templates.
Click OK when you finish.
To view the version history of importing a library template, click the name of a library template to open the View details panel. For the latest version of a library template, you can click the version number to download the script.