<aclass="url fn n profile-usercard-hover"href="https://social.msdn.microsoft.com/profile/Ahmed Elnably"target="_blank">Ahmed Elnably</a>
<time> 3/22/2018 5:12:33 PM</time>
<hr/>
<divid="content">We listened to feedback, we decided to change our previously released <ahref="https://blogs.msdn.microsoft.com/appserviceteam/2018/02/06/az-webapp-new/">experimental "new"</a> command to be now "up".
The command (<strong>Which is still in Preview</strong>) enables the user to create and deploy their Node.js, .NET Core, ASP.NET, Java, or Static HTML apps using a single command. For Node.js we check for the existence of a <strong>package.json</strong> file in the code root path to indicate it is a Node.js app. For ASP.NET and .NET Core we check for the existence of a <strong>*.csproj</strong> file with<strong>netcoreapp </strong>as the<strong> TargetFramework</strong>. For static HTML we check the existence of a<strong> *.html</strong> file.
In the case of Node.js and Java apps the command does the following:
<ol>
<li>Create a new resource group (in Central US, you can use the --location to change the region)</li>
<li>Create a new Linux single VM small App Service plan in the Standard SKU (in Central US)</li>
<li>Create a Linux webapp</li>
<li>Deploy the content of the current working directory to the webapp using <ahref="https://blogs.msdn.microsoft.com/appserviceteam/2017/10/16/zip-push-deployment-for-web-apps-functions-and-webjobs/">Zip Deployment</a></li>
</ol>
In the case of an ASP.NET, .NET Core, Static HTML app the command does the following:
<ol>
<li>Create a new resource group (in Central US, you can use the --location to change the region)</li>
<li>Create a new free Windows App Service plan (in Central US)</li>
<li>Create a Windows webapp</li>
<li>Deploy the content of the current working directory to the webapp using <ahref="https://blogs.msdn.microsoft.com/appserviceteam/2017/10/16/zip-push-deployment-for-web-apps-functions-and-webjobs/">Zip Deployment</a></li>
</ol>
To Install the Azure CLI tools refer to their <ahref="https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest">documentation</a>.
To update the extension with the latest fixes and new languages support (Current version is 0.2.0):
<pre>az extension update --name webapp</pre>
To know what the command will do without creating anything:
<pre>az webapp up --name [app name] --location [optional Azure region name] --dryrun</pre>
To use the new command:
<pre>az webapp up --name [app name] --location [optional Azure region name]</pre>
To update your app content - Just rerun the command you used to create the app (including the --location argument):
<pre>az webapp up --name [app name] --location [optional Azure region name]</pre>
To submit feedback or submit an issue please open an issue in the <ahref="https://aka.ms/webapp-extension-issues">Azure CLI extensions Github Project page</a>.