pnp / cli-microsoft365

Manage Microsoft 365 and SharePoint Framework projects on any platform
https://aka.ms/cli-m365
MIT License
913 stars 319 forks source link

Enhancement: add support for non-public clouds for Power Platform, Power Apps and Power Automate commands #4746

Open waldekmastykarz opened 1 year ago

waldekmastykarz commented 1 year ago

In #1931 we've introduced support for non-public clouds on all commands except Power Platform, Power Apps and Power Automate. To complete support for non-public clouds, we need to investigate which APIs we can use, and how we can do it in such a way that the response is consistent across all clouds.

Here are some additional notes about the endpoints that we could use:

GCC: https://gov.api.powerapps.us GCC High: https://high.api.powerapps.us DoD: https://api.appsplatform.us

For GCC High we might need to update api-version from 2020-10-01 to 2021-02-01.

BrainSlugs83 commented 3 months ago

I can't comment on GCC High, or DoD, but for regular GCC (aka "GCC Low", or "USGovCloud"), I can share some endpoints.

I'll link the same infographic here as I did on #6093: image

I can screen share and test code if anyone on the team is interested in tackling this in the month of July.

milanholemans commented 3 months ago

For GCC High we might need to update api-version from 2020-10-01 to 2021-02-01.

@waldekmastykarz, maybe we could create a v8 issue for this and update all our APIs to this version already?

waldekmastykarz commented 3 months ago

For GCC High we might need to update api-version from 2020-10-01 to 2021-02-01.

@waldekmastykarz, maybe we could create a v8 issue for this and update all our APIs to this version already?

Let's check if the new version is backwards compatible. Perhaps we don't need to wait for v8

Adam-it commented 3 months ago

Thanks @BrainSlugs83 for your support in this 👍. Lets try to use this opportunity and try to implement some prototypes and recheck with you if it works 👍.

milanholemans commented 2 months ago

Hi @BrainSlugs83, I'm interested in supporting non-public cloud tenants for Power Platform commands. The annoying part is of course that I have no way to test my changes. Are you willing to test my code for USGov tenant? Looks like for most clouds, I'm able to find the API URL. However, finding the exact resource seems a bit harder. Do you have any documentation about which resources we can use? Also, have you tried using a Power Automate API with a https://management.azure.com resource token?