Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spboyer/dotnet-azure
A .NET Core global tool to deploy an application to Azure in one command
https://github.com/spboyer/dotnet-azure
azure cloud-computing dotnet dotnetcore global-tool
Last synced: 15 days ago
JSON representation
A .NET Core global tool to deploy an application to Azure in one command
- Host: GitHub
- URL: https://github.com/spboyer/dotnet-azure
- Owner: spboyer
- Created: 2019-03-26T23:52:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-02T16:33:39.000Z (almost 4 years ago)
- Last Synced: 2024-10-30T17:44:42.301Z (21 days ago)
- Topics: azure, cloud-computing, dotnet, dotnetcore, global-tool
- Language: C#
- Homepage: https://tattoocoder.com/dotnet-azure-a-net-core-global-tool-to-deploy-an-application-to-azure-in-one-command/
- Size: 67.4 KB
- Stars: 26
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotnet-azure
[![Build Status](https://dev.azure.com/shayneboyer/dotnet-azure/_apis/build/status/spboyer.dotnet-azure?branchName=master)](https://dev.azure.com/shayneboyer/dotnet-azure/_build/latest?definitionId=3&branchName=master)
.NET Core global tool for creating and updating web applications in Azure.
## Requirements
* .NET Core 2.2 or higher
* Azure Account - [Get one for FREE](https://aka.ms/dotnet-azure)## Installation
```console
dotnet tool install dotnet-azure --global
```## Usage
### help
```console
Usage: dotnet-azure [options] [command]Options:
-?|-h|--help Show help informationCommands:
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`
```console
To sign in, use a web browser to open the page https://microsoft.com/devicelogin?WT.mc_id=dotnet-0000-shboyer 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.
```console
dotnet azure deploy
```Pass project folder.
```console
dotnet azure deploy \mynewproject
```Pass all options.
```console
dotnet azure deploy --location westus --name fancywebapp --group fancywebgroup --plan BasicB1
```Short hand for `location`, `name`, and `group`
```console
dotnet azure deploy -l eastus2 -n fancywebapp -g fancygroup
```Full help output for **deploy** command.
```console
Deploy application to Azure App Service. Options are used for [NEW] application deployments only.Usage: dotnet-azure deploy [arguments] [options]
Arguments:
AppPathOptions:
-?|-h|--help Show help information
-n|--name Name of application, must be unique.
-l|--location Region or location of app deployment. (eastus, westus, etc.)
-g|--group Resource group name to create and use for deployment.
-p|--plan Type of App Service Plan to create for application. Options (BasicB1, SharedD1, FreeF1, PremiumP1 - more info https://aka.ms/azure-appserviceplans )
```