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
- Download the App template from this GitHub Repo (WVDVMControlApp)
- Open Power Apps Portal
- Click on App Tab > Then Click on Import Canvas App
- Choose the package file to import (Refer to my GitHub repo to get the latest package)
- Upload the App Package that we downloaded from GitHub > Then Click on Import
- Once Importing Complete Click on Flows Tab.
- Select WVDPowerOn Flow > Then Click Edit
- Select HTTP Trigger to add your Trigger Attributes > Click Show advanced options.
- 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.
- 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.
- Select WVDPowerOff Flow > Then Click Edit > Repeat Same Steps (7,8,9)
- Download Power App on your phone.
- Once PowerApps is installed, Open the App and follow the below GIF to Pin the app to Home.
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