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 229
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 ?
 
  • SM-17050844-0 Profile Picture
    229 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
11manish Profile Picture

11manish 65 Super User 2026 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 35 Most Valuable Professional

#3
Travis South Profile Picture

Travis South 28

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans