title: Using Azure SDK for JS to create .NET 4.x App Service
body: <p>I'm starting to wonder whether this is the right tool for the job, still here goes.</p>
  <p>I'm attempting to automate the creation of our Azure Test environment using Azure SDK for JS. The environment spans many services (as you can imagine), including Classic ASP.NET app services.</p>
  <p>Node is my safe space, so that is why I started with the JS SDK.</p>
  <p>I have started scripting the creation of an app service using <code>WebSiteManagementClient.webApps.createOrUpdate</code>. I'm confused though, there is seemingly no way to configure any of the following:</p>
  <ol>
  <li>Which app service plan the app service should be connected to. This feels fundamental.</li>
  <li>The operating system, Windows or Linux.</li>
  <li>The stack version, .NET 4.8, .NET Core, or whatever.</li>
  </ol>
  <p>Is it possible to configure the above using the JS SDK, or am I going to have find another approach?</p>
  <p><strong>Update 23/03/21</strong></p>
  <p>Untested, but these are my findings so far:</p>
  <p>App Service Plan - The plan is set using the <code>serverFarmId</code> property of the <code>Site</code> interface.</p>
  <p>Operating system - Assuming Windows as the default, if you want a Linux app service, you change the <code>kind</code> property of <code>Site</code> from <code>app</code>, to <code>app,linux</code>.</p>
  <p>Stack &amp; version - In the <code>SiteConfig</code> interface, you have <code>linuxFxVersion</code> and <code>windowsFxVersion</code>. Again, I think the assumption is 'latest .NET' (e.g. .NET 4.8). For .NET Core 3.1, the setting looks to be <code>DOTNETCORE|3.1</code>.</p>