i've seen i create an D365 se environment from shell using the `New-AdminPowerAppEnvironment` command
however, going throw the documentation (https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerApps.Administration.PowerShell/new-adminpowerappenvironment?view=pa-ps-latest) i couldn't find anywhere to insert my credentials so the command won't open a popup window each time (i want to automate the process of creating environment)
i was wondering if there is a way to send the credentials to the command or store them somewhere the command will pick them from?
Hi,
Thank you for your query.
You can pass credentials as following:
$pass = ConvertTo-SecureString "password" -AsPlainText -Force Add-PowerAppsAccount -Username foo@bar.com -Password $pass
Here is the original link for your reference:
https://powerapps.microsoft.com/en-us/blog/gdpr-admin-powershell-cmdlets/
Best,
Wahaj
(if it helps, please mark it as verified)
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156