Upload portal customisation using Environment specific portals deployment profile.
Example: Deployment profiles for Development, UAT, PROD
The deployment Profile allows you to define a set of variables for the environment in YAML format.
If you're creating PROD profile, you can create file under deployment-profiles with the name "PROD.deployment.yml" (that is, <profileTag>.deployment.yml).
And you can run command with tag (<profileTag>) to use this profile:
example: pac paportal upload --path "X:\portals\starter-portal" --deploymentProfile PROD
In this file, you can have the table (entity) name with table ID, list of attributes, and the values that you want to override while uploading the portal configuration using the deploymentProfile parameter
adx_contentsnippet:
- adx_contentsnippetid: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx
adx_name: abc\prod
adx_value: https://abc.com/xyz/prod
- adx_contentsnippetid: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx
adx_name: def\prod
adx_value: https://def.com/xyz/prod
Under Portals Folder Create
Create Folder "Deployment-Profiles"
Create Specific file as "PROD.Deployment.yml"
Create Specific file as "DEV.Deployment.yml"
Comments
Post a Comment