Update PowerPlatformCommand base class with authentication options
See original GitHub issueSince we are working on #2917 and #2919 (and more to come as we move along) we should introduce a new type of command class. The PPCommand
. That base class should have the following:
- logic to handle different environments
- handle all Power Platform services based on this environment
The PowerShell samples use a -Endpoint
parameter within the Add-PowerAppsAccount
cmdlet (and picks the default production endpoint when none is specified). Given the nature of the CLI I feel that we should use a slightly different approach. For me it makes the most sense to use the m365 cli config set
and add an additional parameter there called PowerPlatformEndpoint
. Should be a string value with a few options (Valid options are “dod”, “prod”,“preview”,“tip1”, “tip2”, “usgov”, or “usgovhigh”.)
@pnp/cli-for-microsoft-365-maintainers how do you feel about that?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:20 (20 by maintainers)
Top Results From Across the Web
pac auth - Power Platform - Microsoft Learn
Describes commands and parameters for the Microsoft Power Platform CLI auth command group.
Read more >Important changes (deprecations) coming in Power Apps and ...
Important. "Deprecated" means we intend to remove the feature or capability from a future release. The feature or capability will continue ...
Read more >Power Platform Developers tool – October update
Power platform Command line updates. Model builder. We are bringing the ability to generate C# classes for Dataverse ... auth with secrets.
Read more >Get started with configuring your portal authentication - Power ...
Go to Power Apps. · On the left pane, select Apps. Select Apps. · Select your portal from the list of available apps....
Read more >Microsoft Power Platform CLI
pac install latest command is not applicable for Power Platform Tools for Visual Studio Code. It will look for updates and update automatically ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@pnp/cli-for-microsoft-365-maintainers I have the feeling we can close this one; feels like there is not too much interest on this and we should focus on implementing the other
pp
commands first. What do you think?Okey there is a little bit of magic in place for for the audience so I am not 100% sure if we can replicate that (all code below); but it also doesn’t feel like something should be possible. Will try to find some time to do a PoC for CLI.
The current implementation in PowerShell is as follows: Step 1: Pass the
EndPoint
ParameterStep 3: Determine the Audience (remark that the PowerShell commandlets allow you to set a different audience URL
Then there is this large internal method to set the PowerAppsAcc that holds all that logic and does an extra Switch to determine the correct URL.