Hey all,
I'm working with Power Apps CLI and according to the documentation (https://docs.microsoft.com/en-us/power-apps/maker/portals/power-apps-cli#use-deployment-profile) I should be able to lookup an environment variable from within my deployment profile to fill a value (eg, a client secret). I have not been able to get this to work regardless of what variable or notation I use. During import the variable doesn't get read and is simply input as a text string like ${ThisIsMySecret}.
Has anyone got this working or knows what I'm doing wrong?
Thanks
Hi @NStone ,
Yes, I currently have this working in an Azure DevOps pipeline with the configuration as follows:
There are two key points to note here:
Hope this helps! If it does, please mark this as the solution so it can help others, like me, that found this.
Hi @NStone ,
Were you trying to use this in Github Actions, Azure DevOps or locally?
I tried this but unfortunately it was also unsuccessful.
Hi @NStone ,
did not try, but the documentation says, that OS is reachable via that. So, may be you have to set an enivronmentvariable for example named ThisIsMySecret and address this with ${OS.ThisIsMySecret}
The way to set the environment depends a little bit on the system you are working on. In Powershell its as simple as
May be, this is reachable vis ${OS.X} 🙂
Hope it helps,
Christian
Lucas001
60
Super User 2025 Season 2
Fubar
55
Super User 2025 Season 2
surya narayanan
35