title: Is it possible to script the configuration of Azure App Service Authentication?
body: <p>Azure App Service includes a turnkey authentication solution, under the Authentication/Authorization settings blade. This allowed me to configure Active Directory authentication for my App Service web api. I have a provisioning script for setting up my environment and I would like to automate the configuration of App Service Authentication, either through an ARM template or through Powershell commands.</p>
  
  <p>I've tried using resource.azure.com to view the setup of my site but I couldn't see AD-related config. I've tried searching for ARM templates that do this, without success. I also couldn't see an Azure Resource Manager commandlet that could do this.</p>
  
  <p>Does anyone know how to automate the configuration of App Service Authentication, specifically for AD authentication?</p>