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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Start/Stop D365 development environments

(0) ShareShare
ReportReport
Posted on by 202
Hi Guys,
 
Hope all is well.
 
I am having an issue with start/stop D365 environments via power automated scheduled flow.
My flow is simple.
 
Scheduled flow
Obtain Bearer token for authentication
Parse Json
Fetch environment metadata - to see the status of the environment 
Parse Json
Condition
If VM is in deployed state skip
Else proceed
HTTP call to start the VM
 
It all works until here.
 
 
 
My problem is on the second part of the flow.
I have a delay of 8h
Afterwards i am obtaining the Bearer token again because it expires after 1h.
Parse Json
HTTP call to stop the VM - here i am receiving error that i am not authorized to perform this action. 
 
What i suspect: It is not a permission issue because if i delay the /STOP VM/ call for 1m it all works fine.
I am using the second token to authenticate for the STOP VM call, but still i can't manage to build single flow for both of the actions start/stop.
 
Any ideas what could be wrong here ?
 
I have the same question (0)
  • SM-17050844-0 Profile Picture
    202 on at
    Solved it NVM

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 53 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans