Azure App Service Team Blog

How the App Service team functions

Renaming our “new” command to “up”

We listened to feedback, we decided to change our previously released experimental “new” command to be now “up”.

With version 0.2.0 of the extension, “new” is no longer available, and you will have to use “up” instead.

The command (Which is still in Preview) enables the user to create and deploy their Node.js or .NET Core app using a single command. For Node.js we check for the existence of a package.json file in the code root path to indicate it is a Node.js app. For .NET Core we check for the existence of a *.csproj file with netcoreapp as the TargetFramework.

In the case of Node.js app the command does the following:

  1. Create a new resource group (in Central US, you can use the –location to change the region)
  2. Create a new Linux single VM small App Service plan in the Standard SKU (in Central US)
  3. Create a Linux webapp
  4. Deploy the content of the current working directory to the webapp using Zip Deployment

In the case of .NET Core app the command does the following:

  1. Create a new resource group (in Central US, you can use the –location to change the region)
  2. Create a new free Windows App Service plan (in Central US)
  3. Create a Windows webapp
  4. Deploy the content of the current working directory to the webapp using Zip Deployment

To Install the Azure CLI tools refer to their documentation.

To Install the extension:

az extension add --name webapp

To update the extension with the latest fixes and new languages support (Current version is 0.2.0):

az extension update --name webapp

To know what the command will do without creating anything:

az webapp up --name [app name] --location [optional Azure region name] --dryrun

To use the new command:

az webapp up --name [app name] --location [optional Azure region name]

To update your app content – Just rerun the command you used to create the app (including the –location argument):

az webapp up --name [app name] --location [optional Azure region name]

To submit feedback or submit an issue please open an issue in the Azure CLI extensions Github Project page.

Road Map – also tracked here:

  1. Add ASP.Net support
  2. Add Java support
  3. Add more languages to the supported list
  4. Add support to Azure Functions