title: How to specify .net core version with Terraform azurerm_app_service
body: <p>Out of the box, I think <a href="https://www.terraform.io/docs/providers/azurerm/r/app_service.html" rel="noreferrer">azurerm_app_service</a> provider does allow us to specify the .Net framework version, by utilising the <code>dotnet_framework_version</code> field. </p>
  
  <blockquote>
    <p><strong>dotnet_framework_version</strong> - (Optional) The version of the .net
    framework's CLR used in this App Service. Possible values are v2.0
    (which will use the latest version of the .net framework for the .net
    CLR v2 - currently .net 3.5) and v4.0 (which corresponds to the latest
    version of the .net CLR v4 - which at the time of writing is .net
    4.7.1). For more information on which .net CLR version to use based on the .net framework you're targeting - please see this table. Defaults
    to v4.0.</p>
  </blockquote>
  
  <p><a href="https://www.terraform.io/docs/providers/azurerm/r/app_service.html#dotnet_framework_version" rel="noreferrer">https://www.terraform.io/docs/providers/azurerm/r/app_service.html#dotnet_framework_version</a></p>
  
  <p>The document says that the possible values are v2.0 or v4.0. </p>
  
  <p>But what if I am targeting .NET Core, say v2.2 instead? What am I supposed to do here? </p>
  
  <p>Azure portal allows selecting .NET Core from the drop down menu. (see screenshot below)</p>
  
  <p><a href="https://i.stack.imgur.com/EwQeP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/EwQeP.png" alt="enter image description here"></a></p>
  
  <p>I am not sure whether or not there's a way to do this with Terraform azurerm_app_service as well.</p>