WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud
  • Tanzu
    • Application Modernization
    • Tanzu services
    • Tanzu Community Edition
    • Tanzu Kubernetes Grid
    • vSphere with Tanzu
  • Home Lab
  • Nested Virtualization
  • Apple
You are here: Home / Azure VMware Solution / VMworld 2020 Demo - Voice activated workload migration to VMware Cloud SDDCs

VMworld 2020 Demo - Voice activated workload migration to VMware Cloud SDDCs

10.19.2020 by William Lam // 2 Comments

One of my favorite but also most stressful part of preparing for a VMworld session is creating the demos. Even with a "virtual" VMworld this year, I personally felt it was even more stressful than a physical VMworld.

I have been presenting with Emad Younis for a number of years now and every year, we always end up with crazy ideas without thinking through all the feasibility aspects. This year was certainly no different and while working on our demo this year, I was seriously questioning my sanity and even the actual return on investment (ROI), if such a thing exists!? 😂

In case you have not watched our session, check out HCP132: Planes, Trains and Workload Mobility, you can watch it for free and see the full demo.


I was really floored by all the positive feedback that we had received from attendees which includes the VMworld survey but also on Twitter and Slack. This was one of my favorite tweet and response 😀

Best session I have seen so far👏😁

— Wesley Geelhoed (@wessieloerus) September 30, 2020

We really appreciate all the feedback and it definitely made up for some of the late nights where I was about to give up. I know a few of you were asking for more details about the demo and so this blog post will be focusing on some of the information I was not able to get to during the VMworld session.

I will assume you have watched our VMworld session already. If you have not, definitely go check it out!

At a high level, each voice assistance device is connected to their respective cloud service which then exposes the ability to communicate with a custom HTTP(s) endpoint.

  • Amazon - Echo Dot with Alexa Skills Service
  • Microsoft - Cortana Desktop with Azure Cognitive Service
  • Google - Google Mini Home with Diagflow

Note: The other really cool thing is that you do not need to own an Amazon Echo Dot or Google Mini Home to use the voice assistance services, each cloud provider actually has a simulator that works with your actual code, which is how I initially tested the solution. 

To communicate with each voice assistance service, I am using Flask which is an easy to use Python framework for building custom web applications and ngrok to then serve up our Flask application over the internet which can run behind a NAT/Firewall, very useful for testing purposes.

Each SDDC (VMware Cloud on AWS, Azure VMware Solution and Google Cloud VMware Engine) is a paired with our on-premises vSphere environment using a single VMware Hybrid Cloud Extension (HCX) instance. To interact and perform operations within VMware HCX and ultimately move workloads to our respective SDDCs, the Python Flask application is using both the vSphere and HCX REST API.


Since HCX was common to all three VMware Cloud SDDCs, I created a single HCX python helper library that took care of processing the list of VMs to be migrated based on a vSphere Tag and constructed the HCX Mobility Group and initiate the migration. Each SDDC would have a tiny VMware Photon OS VM that would run the Flask application and be able to communicate with the SDDC and HCX APIs.

You can find all the code in my Github repo: https://github.com/lamw/vmworld-2020-vmware-cloud-demo

Although I only had a couple of weeks to build these demos, I was really impressed with what you could do in such a short amount of time. I was also surprised at how far natural language processing has evolved and there were so many capabilities that I did not get a chance to use in these prototypes to make the solution even more robust. For those interested, definitely spend some time with the respective voice services as there is a ton of content available online and best of all, you can get started all fore free across the three public cloud providers.

Here are the references I had used:

  • https://www.williamlam.com/2017/06/introducing-alexa-to-a-few-more-vmware-apis.html
  • https://developer.amazon.com/en-US/docs/alexa/custom-skills/steps-to-build-a-custom-skill.html
  • https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-custom-commands-use-custom-voice
  • https://www.pragnakalp.com/dialogflow-fulfillment-webhook-tutorial/

Although voice can be used to do some really cool things, a more practical way of automating workload migration is through the use of PowerCLI. In this blog post, I share a simple PowerCLI script that leverages the HCX cmdlets to construct HCX Mobility Groups comprises of any VMs with a specific vSphere Tag.

Lastly, here are the demo recordings of me interacting with each of the voice assistance devices for those interested. 

More from my site

  • Quick Tip - Multi-Factor Authentication (MFA), IP Address Range & Source Domain restrictions available for all VMware Cloud Services
  • Logging into vCenter when vCenter Cloud Gateway (VCGW) is disconnected from vSphere+ Cloud Service
  • How to check if your vCenter Server is using vSphere+ / vSAN+ Subscription?
  • Automating subscription and usage retrieval for vSphere+ and vSAN+ Cloud Service
  • Quick Tip - Inventory core count for vSphere+, vSAN+ & VCF+ Cloud Service

Categories // Azure VMware Solution, Google Cloud VMware Engine, HCX, VMware Cloud, VMware Cloud on AWS, VMworld Tags // Alexa, AWS, Azure Cognitive Service, Diagflow, Google, Microsoft, VMware Cloud

Comments

  1. Cesare Rossi says

    10/20/2020 at 11:41 pm

    Hi! I’ve done mostly the same with vRA and Amazon Dash button. Look…

    Reply
  2. Rob Steele says

    11/02/2020 at 8:59 am

    Love it! Awesome post!!!

    Reply

Thanks for the comment! Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Author

William Lam is a Senior Staff Solution Architect working in the VMware Cloud team within the Cloud Infrastructure Business Group (CIBG) at VMware. He focuses on Cloud Native technologies, Automation, Integration and Operation for the VMware Cloud based Software Defined Datacenters (SDDC)

Connect

  • Email
  • GitHub
  • LinkedIn
  • RSS
  • Twitter
  • Vimeo

Recent

  • Changing the default HTTP(s) Reverse Proxy Ports on ESXi 8.0 03/22/2023
  • Quick Tip - How to download ESXi ISO image for all releases including patch updates? 03/15/2023
  • SSD with multiple NVMe namespaces for VMware Homelab 03/14/2023
  • Is my vSphere Cluster managed by vSphere Lifecycle Manager (vLCM) as a Desired Image or Baseline? 03/10/2023
  • Interesting VMware Homelab Kits for 2023 03/08/2023

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2023

 

Loading Comments...