Skip to content
A .NET Core global tool to deploy an application to Azure in one command
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
Actions console spinner Apr 15, 2019
Commands
Common add dotnet publish trycatch with exception type Apr 17, 2019
Utilities #2 fixes Apr 23, 2019
scripts
.gitignore
DependencyChecker.cs console spinner Apr 15, 2019
Directory.Build.props
Program.cs
README.md README w/ Azure DevOps badge Apr 29, 2019
azure-pipelines.yml
azure.csproj
global.json
package.json version 1.0.2 release Apr 18, 2019
pre-pack.sh

README.md

dotnet-azure

Build Status

.NET Core global tool for creating and updating web applications in Azure.

Requirements

Installation

dotnet tool install dotnet-azure --global

Usage

help

Usage: dotnet-azure [options] [command]

Options:
  -?|-h|--help  Show help information

Commands:
  deploy        Deploy application to Azure App Service. Options are used for [NEW] application deployments only.
  login         Login into Azure

login

Run login command first to authenticate against your Azure account.

dotnet azure login

To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code XXXXXXXXX to authenticate.

deploy

Use defaults, random generated application and resource group name. Current directory is assumed for application for deployment.

dotnet azure deploy

Pass project folder.

dotnet azure deploy \mynewproject

Pass all options.

dotnet azure deploy --location westus --name fancywebapp --group fancywebgroup --plan BasicB1

Short hand for location, name, and group

dotnet azure deploy -l eastus2 -n fancywebapp -g fancygroup

Full help output for deploy command.

Deploy application to Azure App Service. Options are used for [NEW] application deployments only.

Usage: dotnet-azure deploy [arguments] [options]

Arguments:
  AppPath

Options:
  -?|-h|--help                       Show help information
  -n|--name <APP_NAME>               Name of application, must be unique.
  -l|--location <LOCATION>           Region or location of app deployment. (eastus, westus, etc.)
  -g|--group <RESOURCE_GROUP>        Resource group name to create and use for deployment.
  -p|--plan <APP_SERVICE_PLAN_TYPE>  Type of App Service Plan to create for application. Options (BasicB1, SharedD1, FreeF1, PremiumP1 - more info https://aka.ms/azure-appserviceplans )
You can’t perform that action at this time.