Power-Platform-DevOps / Power-Platform-ALM-Starter-Kit

Kit to help you start your DevOps journey with the Power Platform
MIT License
32 stars 2 forks source link

[IDEA] Automate the activation of the early access to a new major release for a Power Platform environment #15

Open rpothin opened 3 years ago

rpothin commented 3 years ago

In some cases you could want to automate the activation of the early access to a new major release for a Power Platform environment.

Below we have some information (gathered by our friend David Rivard) that could help us work on that issue: Here is the request that is sent when you click on the Enable button: https://admin.powerplatform.microsoft.com/api/environments/{GUID_OF_ENV}/features/October2020Update/enable?geo=Na *geo=Na must standfor NorthAmerica **I guess Each update will have there own url (ex. October2020Update, April2021Update) etc..

The tricky part would be to assess when the upgrade process is finished in order to put it in a release pipeline.

By analyzing the request sent by the admin portal I think this could be achieved. After enabling the feature, this request is sent at regular interval https://admin.powerplatform.microsoft.com/api/environments/{GUID_OF_ENV}/features?geo=Na

The response gives the status of the upgrade in the AppsUpgradeState property Upgrade in progress

Upgrade finished

lar-mar commented 3 years ago

I already asked MSFT for a supported way to enable Release Wave x via API. They told me some months ago that there is currently no other way than doing it via the UI in PPAC. Would be great if we could find an alternative.

BenediktBergmann commented 3 years ago

Since the UI in PPAC always requests some API it should be possible to do that by our self. If I remember correctly @drivardxrm look at something in that space already.

rpothin commented 3 years ago

In complement, this issue has been created based on the information provided by David Rivard 😉 (as you can see in the description - first post - of the issue)