web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Suggested Answer

DeleteEnvironmentByID (Preview) – RestrictedIPAddress

(0) ShareShare
ReportReport
Posted on by 96
Hi everyone,
I’m using the Power Platform Admin connector in a flow to automatically delete teams-environments. For this I’m using the action:
“Delete environment by ID (Preview)”

The flow basically works, but I’m getting the following error on the delete action:
The host name 10.0.X.X resolved to IP address 10.0.X.X which is restricted.
 
So the action is marked as Failed in the run history.
The strange thing is: the environment still gets deleted successfully.
 
Is there a way to use this action so that it returns “Succeeded” correctly (or is there another recommended action/API to delete environments from a flow)?
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    52,851 Super User 2025 Season 2 on at
    DeleteEnvironmentByID (Preview) – RestrictedIPAddress
     
    This is really an error based on the fact that it cannot receive the response, which is different than the back end processing your request, which yes is weird that one can work and not the other.
     
    It also is in preview so it could just be that.
     
    What you can do its us the HTTP Connector instead to do the delete and or you would need to use the Power Admin connector, do the delete, use a Scope error handler, catch the error and either ignore it, or use the Http Connector OR the Admin Actions to try to do something in that environment.. it would fail as its marked for delete and you essentially are using the Error to do something in it to prove the delete work.
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 544 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 482 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 287

Last 30 days Overall leaderboard

Featured topics