Skip to main content Build an agentic enterprise Get Started Guided Tours Security & Governance Dataverse Connectors Power BI Desktop Pro Premium Embedded Report Server Power Apps Power Automate Power Pages Copilot Studio Pricing Resources by Product Power Platform Learn Power Platform Blog Documentation Power Platform Topics Contact us Start free
1 min read

Power Apps portals: Create deployment profile for dev/test/prod environment using Power Apps CLI


You can now upload portal customization in different environment with different set of properties using portals deployment profile. You can also create multiple deployment profiles and upload portal customization to an environment by applying the profile you want.

For example, you can have three deployment profile, each for dev, QA and prod environments like below:

Contoso-Dev Used for active development and testing
Contoso-QA Used for nightly build deployment and testing.
Contoso-PROD This is a production environment.


Example: Use deployment profile

We want to make sure portal users can easily identify if they are accessing portal from development environment or QA environment.  To achieve this, we will be appending

  • “DEV” text to company name when we upload portal customization to “Contoso-DEV” and
  • “QA” text to company name when we upload the customization “Contoso-QA” environment.
Contoso portal logo in Dev environment
Contoso portal logo in QA environment

Prerequisite

Make sure you have installed Power Apps CLI and connected to environment. See documentation here for detail.

Steps to create deployment profile for DEV and QA environments

  • Download portal content.
  • Create “deployment-profiles” folder under portal configuration folder
  • Create “dev.deployment.yml” deployment profile for “Contoso-DEV” development environment and “qa.deployment.yml” file for “Contoso-QA” daily test environments (that is, <profileTag>.deployment.yml).
    • 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.

  • “dev.deployment.yml” file

  • “qa.deployment.yml” file

How to use deployment profile

Run portal upload command with “–deploymentProfile” parameter to upload portal customization which will be overridden by deployment profile configuration (i.e., pac paportal upload –path “C:\portals\starter-portal” –deploymentProfile “profile-name”).

Upload to development environment (using “dev.deployment.yml” profile)

pac paportal upload --path "C:\portals\starter-portal" --deploymentProfile dev

Upload to QA environment (using “qa.deployment.yml” profile)

pac paportal upload --path "C:\portals\starter-portal" --deploymentProfile qa

 

Your feedback will help us continue to build on and improve the capabilities of this feature. We want to hear from you!
For details, see the documentation.

Thank you,
Neeraj Nandwana

  • Power Pages
    Two coworkers working in cubicle looking at computer monitor
    1 min read

    Modern List in Power Pages is now generally available

    Today, we’re announcing the general availability of Modern List in Power Pages, a refreshed data presentation experience that helps makers showcase Dataverse data with modern Fluent UI components, seamless infinite scrolling, inline filtering, shimmer loading, flexible low-code customization and custom JavaScript support.
  • Power Apps
    Power Platform Feature Update (hero image)
    20 min read

    What’s new in Power Platform: September 2026 feature update

    Power Platform Build hands-on Power Platform and AI expertise with Power Series Developed by the Power CAT team, Power Series is now available with 20 hands-on labs that help customers, partners, and field teams build practical Power Platform and AI skills at their own pace.