Home

How to trigger VM start when user logs into WVD portal

%3CLINGO-SUB%20id%3D%22lingo-sub-422679%22%20slang%3D%22en-US%22%3EHow%20to%20trigger%20VM%20start%20when%20user%20logs%20into%20WVD%20portal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-422679%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20implemented%20automation%2Frunbooks%20to%20shutdown%20idle%20VMs%20in%20the%20WVD%20environment.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20we%20would%20like%20some%20sort%20of%20mechanims%20to%20start%20a%20VM%20related%20to%20a%20specific%20user%20when%20he%20needs%20it.%3C%2FP%3E%3CP%3EOur%20first%20idea%20was%20to%20forward%20Azure%20AD%20logs%20(it%20is%20logged%20when%20a%20user%20logs%20into%20WBVD)%20to%20an%20Event%20Hub%20and%20use%20an%20Azure%20function%2FLogic%20apps%20to%20start%20the%20correct%20VM.%26nbsp%3B%20%26nbsp%3BAnother%20idea%20was%20to%20publish%20a%20simple%20web%20application%2C%20make%20it%20available%20in%20myapps%20and%20have%20the%20user%20initiate%20the%20VM%20start.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20other%20ideas%2Fsuggestion%20on%20how%20to%20solve%20this%20in%20an%20elegant%20way%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-659442%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20trigger%20VM%20start%20when%20user%20logs%20into%20WVD%20portal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-659442%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F219204%22%20target%3D%22_blank%22%3E%40Thomas%20Aure%3C%2FA%3E%26nbsp%3B%3A%20Thanks%20for%20the%20patience.%20At%20the%20moment%2C%20forwarding%20Azure%20AD%20logs%20may%20be%20the%20most%20effective%20way%20since%20our%20Diagnostics%20has%20a%20lag%20time.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20MyApps%20also%20sounds%20like%20a%20good%20approach%2C%20especially%20if%3A%3C%2FP%3E%0A%3CP%3E1.%20You%20are%20assigning%20personal%20desktops%20to%20them%3C%2FP%3E%0A%3CP%3E2.%20Want%20to%20put%20the%20burden%20on%20them%20to%20turn%20on%2Foff%20the%20VM%3C%2FP%3E%0A%3CP%3EHowever%2C%20if%20you%20want%20to%20give%20them%20that%20control%2C%20you%20may%20just%20have%20a%20shortcut%20to%20the%20Azure%20VM%20itself%20(and%20create%20a%20specific%20role)%20allowing%20them%20to%20start%2Fstop%20the%20Azure%20VM%20without%20too%20much%20custom%20code%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Thomas Aure
Occasional Contributor

Hi, 

 

We have implemented automation/runbooks to shutdown idle VMs in the WVD environment. 

 

Now we would like some sort of mechanims to start a VM related to a specific user when he needs it.

Our first idea was to forward Azure AD logs (it is logged when a user logs into WBVD) to an Event Hub and use an Azure function/Logic apps to start the correct VM.   Another idea was to publish a simple web application, make it available in myapps and have the user initiate the VM start. 

 

Any other ideas/suggestion on how to solve this in an elegant way? 

 

1 Reply

@Thomas Aure : Thanks for the patience. At the moment, forwarding Azure AD logs may be the most effective way since our Diagnostics has a lag time.

 

The MyApps also sounds like a good approach, especially if:

1. You are assigning personal desktops to them

2. Want to put the burden on them to turn on/off the VM

However, if you want to give them that control, you may just have a shortcut to the Azure VM itself (and create a specific role) allowing them to start/stop the Azure VM without too much custom code?

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies