Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Start/Stop D365 development environments

(0) ShareShare
ReportReport
Posted on by 72
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
    SM-17050844-0 72 on at
    Start/Stop D365 development environments
    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans