web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SharePoint and Environ...
Power Apps
Answered

SharePoint and Environment Variable using azure DevOps for Managed & unmanaged solutions

(0) ShareShare
ReportReport
Posted on by 7

i have make the build the pipeline from dev environment but now i want to give SharePoint Connection environment Variable For UAT and SIT environment so which task should i used or else use yaml script for pipeline to deployed using azure DevOps.

I have the same question (0)
  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @mahajanyatish14 Have you created your Deployment Settings files for each environment and committed these to source control for each environment? These will enable the setting of Connections for Connection References and values for Environment Variables at deployment time. See here for more detail on how to generate Deployment Settings files using PAC CLI: https://learn.microsoft.com/en-us/power-platform/alm/conn-ref-env-variables-build-tools

    You can then use the the Power Platform Solution Import Task to deploy the solution(s) using the deployment settings file(s)

  • mahajanyatish14 Profile Picture
    7 on at

    But can we make the deployment setting file using azure devops pipeline?

  • Verified answer
    Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @mahajanyatish14 Yes. This blog post might help: https://benediktbergmann.eu/2021/08/06/execute-power-apps-cli-in-azure-devops/

  • mahajanyatish14 Profile Picture
    7 on at

    Getting error not understanding exactly what is the right way to generate or use deployment file.

    mahajanyatish14_0-1702660239535.png

    if you are having details pipeline demo please let me know.

  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @mahajanyatish14 For a basic setup, the steps are to create the Deployment Settings files using PAC CLI on your local machine. Add in the values for Connection IDs and Environment Variable values and commit these files to source control. Then update your pipelines to use these files.

     

    Detailed explanation on this blog post: https://benediktbergmann.eu/2021/12/02/set-connection-references-and-environment-variables-in-pipelines/

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard