This repo contains a sample linux docker image for Microsoft.PowerApps.Administration.PowerShell with Azure Active Directoy device code authentication. This is not a complete implementation and would require further testing and updates to support authentication for different Power Platform resources.
- Build the docker image
docker build -t sample-microsoft.powerppps.administration.ps .
- Run the image
docker run -it sample-microsoft.powerppps.administration.ps
- Import the module
Import-Module Microsoft.PowerApps.Administration.PowerShell
- Run a Administration command e.g.
Get-TenantSettings
- Login using device code
This sample uses the Microsoft.Identity.Client .Net Standard library to login and create OAuth AccessToken with the required resources.