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

Notifications

Announcements

No record found.

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 194
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
    194 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 41 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 39

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans