Table of Contents

Recently we started getting many requests from our WVD customer to provision new Windows Virtual Desktop Personal VMs which for sure will increase the cost, so it’s the time to do our homework and find a way you to provide our customer requirement with some added value.

To be honest, I didn’t search a lot because I know where to go , I found a very helpful article by Tom Hickling about powering of your Windows Virtual Desktop personal VM when it’s not in use with a simple click.

App Creation

  1. Download the App template from this GitHub Repo (WVDVMControlApp)
  2. Open Power Apps Portal
  3. Click on App Tab > Then Click on Import Canvas App
  4. Power on and off your Personal WVD Desktops Using your mobile device
  5. Choose the package file to import (Refer to my GitHub repo to get the latest package)
  6. Upload the App Package that we downloaded from GitHub > Then Click on Import
  7. Once Importing Complete Click on Flows Tab.
  8. Select WVDPowerOn Flow > Then Click Edit
  9. Power on and off your Personal WVD Desktops Using your mobile device
  10. Select HTTP Trigger to add your Trigger Attributes > Click Show advanced options.
  11. Power on and off your Personal WVD Desktops Using your mobile device
  12. URI Modification:
    • resourceGroupName: The name of the resource group where the WVD vm located.
    • subscriptionId: The subscription ID where the WVD vm created.
    • vmName: The name of the virtual machine.
  13. Advanced Options:
    • Authentication: Select Active Directory OAuth
    • Tenant: Enter your Azure AD Tenant ID
    • The Audience: https://management.azure.com
    • Client ID: Enter the Client ID for your Service Principle
    • Credential Type: Select Secret
    • Secret: Service Principle Secret.
  14. Select WVDPowerOff Flow > Then Click Edit > Repeat Same Steps (7,8,9)
  15. Download Power App on your phone.
  16. Once PowerApps is installed, Open the App and follow the below GIF to Pin the app to Home.

Power on and off your Personal WVD Desktops Using your mobile device

App Creation Video

Testing and Demonstration

Resources:

This Solution Creation following tips by Tom Hickling and Dean Cefola

 

Check out my Udemy course for AZ-140 Azure Virtual Desktop
Use This link for 80% OFF ❤: https://bit.ly/AVDCourseYT

Share:

administrator

Microsoft MVP | Speaker | Azure Service Delivery Lead at Bespin Global MEA, helping customers build successful Azure practices. Talks about #AzureCloud and #AI