Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Connection References, Canvas App, App Registrations Help

Posted on by
Good day, 
 
Connection References, Canvas App, App Registrations - Not working together for SQL Server data sources in a multi environment setup.
 
I can't setup connection references to be used across Environments while using App registration details. 
Can anyone assist? 
 
Is there other best practices out there for this? I want to be able to move the app to other environments using Azure DevOps. However without connection references this doesn't seem plausible.
 
Thanks in advance.
  • Suggested answer
    SaiRT14 Profile Picture
    SaiRT14 1,318 on at
    Connection References, Canvas App, App Registrations Help
    pls try the following:
     
    Create a Single App Registration: Register an application in Azure Active Directory for SQL Server access. Use the same app registration (client ID and secret) across all environments.

    Grant Permissions:  Assign SQL Server permissions (via roles) to the app registration for all environments. Ensure the app registration has consistent access to the SQL Server database.

    Set Up Connection References: Create a connection reference in each environment pointing to SQL Server. Ensure the connection reference uses the app registration credentials.

    Deployment Workflow: Use Azure DevOps pipelines to deploy the Canvas App and connection references. Use parameterization (e.g., Power Platform Build Tools) to update environment-specific connection settings during deployment.

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,532

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,050

Leaderboard