Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Environment variables for Canvas PowerApps Instrumentation Key

Hello experts,


We have built a Canvas PowerApps where we are trying to use the Azure Application Insights key for the Instrumentation Key of the Canvas app.   The requirement is to have a different Insights key for different environments.  We tried to use environment variables to hold the instrumentation key for different environments but it seems like there is no support for environment variables on Instrumentation Key currently.




Is there any way where we can use a different key for different environments without manually updating the Canvas app after deploying to a different environment?  Please share any input around this so that manual intervention can be avoided during deployments.



Palani K.B.

Super User
Super User

Environment Variables can hold a string. You don't need a special datatype for "instrumentation key".

Frequent Visitor

@cchannon Thanks for your response.  I agree that environment variables can hold string.  However, on the Instrumentation Key of the Canvas powerapps, I don't see an option to select an Environment Variable.  Do you have any idea on how to select an environment variable under the App Object as shown in the screenshot of my original post?

Have you added both Environment Variable Definitions and Environment Variable Values as tables from the data source?




Frequent Visitor

Hi cchannon, I am not using CDS data source in the app.  My end users do not have license to support CDS. SharePoint is the data source of the app.  I am looking for a way to use environment variables directly without referencing CDS tables in my app, something similar to the latest datasource environment variables.

Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (943)