Exchange Speech Assistant

Updated 2017-04-02

Exchange Speech AssistantAs an Exchange administrator, you usually perform tasks by executing PowerShell scripts. Some scripts are executed automatically, and some are run manually as these scripts require more attention.

Think about a completely different approach. Have you ever considered administrating Exchange Server or Exchange Online instances using your voice?

Thanks to Alexa skills, we can do something like

“Alexa, ask Exchange Assistant to create a new mailbox for John Doe”

“Alexa, is the CEO’s mailbox in good shape?”

Or run something more complicated

“Alexa, start Exchange to setup 5 new Exchange servers, please”

Sounds like magic, right?

Alexa Speech Assistant SkillSolution

As a solution, we use the following technologies:

  • Alexa custom skills extension for Exchange
  • Azure subscription supporting
    • Azure Web API
    • Azure Automation
  • Azure Hybrid Runbook Worker

The Azure Hybrid Runbook Worker enables you to execute PowerShell runbooks in your local infrastructure to manage local resources.

How does it work

The solution consists of a Visual Studio Solution as an Alexa skill endpoint. The configured intents connect to your Azure Automation webhooks and trigger the execution of preconfigured PowerShell automation runbooks.

These runbooks can either run against Azure resources or against your local infrastructure. Automation of your local infrastructure requires the setup of the Azure Hybrid Runbook Worker components.

The following diagram illustrates the functionality.

How does the Exchange Speech Assistant work?

Requirements

Preparation

The solution utilizes the Azure4Alexa and AlexaSkillsSet.NET projects available on GitHub. Currently, the approach requires some manual steps and Visual Studio knowledge, as you want to deploy your own Alexa custom application. This is primarily driven due to security demands. The Hybrid Runbook Worker can access your local infrastructure. So you went to be in charge of the credentials used to access your infrastructure.

  1. Clone the Visual Studio solution from Github (https://github.com/Apoc70/ExchangeSpeechAssistant)
  2. Follow the description provided here to setup your personal Alexa developer account and to get your Azure trial subscription to host the application
  3. Publish the Visual Studio solution as an intital endpoint to setup your Alexa custom skill
    This results in a simple web page demonstrating the new Azure Web App
    Speech Assistant Azure Web App
  4. Modify the AlexaConstants.cs to use your Application Id
  5. Re-Publish the Visual Studio solution with your custom Application Id
  6. Prepare your local infrastructure for use with Hybrid Runbook Worker
    1. Installing Hybrid Runbook Worker
    2. Create a Runbook Automation Account
      Runbook Automation Account
    3. Create a runbook for whatever action you want to execute
      Runbook Example NewVMs

Start enjoying how your administrators can orchestrate your Exchange Server environment.

Links

Enjoy your wonderful life with Exchange 🙂

Thanks for stopping by on April 1st.

Sie sehen gerade einen Platzhalterinhalt von Facebook. Um auf den eigentlichen Inhalt zuzugreifen, klicken Sie auf die Schaltfläche unten. Bitte beachten Sie, dass dabei Daten an Drittanbieter weitergegeben werden.

Mehr Informationen
%d