microsoft / powerapps-tools

Unsupported PowerApps Tools & Apps
MIT License
1.04k stars 432 forks source link

[BUG]: Flow returns 404 Error when deleting Teams environments #975

Closed ApoorvaKantale closed 3 years ago

ApoorvaKantale commented 3 years ago

Weekly cleanup of teams environment flow .

The flow is delete the teams environment based on the condition , but it fails with the below error

{​​​"statusCode":404,"headers":{​​​"Access-Control-Allow-Methods":"GET, PUT, PATCH, DELETE, POST","Access-Control-Allow-Origin":"","Access-Control-Max-Age":"3600","Access-Control-Expose-Headers":"","Date":"Wed, 28 Apr 2021 14:58:44 GMT","Content-Length":"54","Content-Type":"application/json"}​​​,"body":{​​​"statusCode":404,"message":"Resource not found"}​​​}​​​

image

Can you please check and let us know.

manuelap-msft commented 3 years ago

The 404 error is expected behaviour as per https://docs.microsoft.com/en-us/powershell/module/microsoft.powerapps.administration.powershell/remove-adminpowerappenvironment?view=pa-ps-latest#description

We addressed and fixed this with the latest release, as per #764. Can you confirm you are on the latest version? Please be sure to remove any unmanaged layers from flows before you update as described in installing updates or you will not see the changes.

JeneferM-MSFT commented 3 years ago

Closing out as duplicate per comment above. Duplicate of #764