Code Monkey home page Code Monkey logo

learn-host-a-web-app-with-azure-app-service's Introduction

learn-host-a-web-app-with-azure-app-service

https://docs.microsoft.com/ja-jp/learn/modules/host-a-web-app-with-azure-app-service/

MVC アプリ雛形作成

dotnet new mvc --name <app-name>
cd <app-name>
dotnet run

ブラウザから https://localhost:5001/

build & pack(zip)

dotnet publish -o pub
cd pub
compress-archive * site.zip

compress-archive * site.zip は pub 配下から全て圧縮してください。
別のツールでも構いません。

Azure App Service

演習 - Azure portal で Web アプリを作成する - Learn | Microsoft Docs

Azure App Service deploy

az login :

deploy に az を利用するのでコンソールから Azure にログインする必要があります。

PS > az login

az webapp deployment source config-zip :

PS > az webapp deployment source config-zip `
>>     --src site.zip `
>>     --resource-group *****-********-****-****-****-************ `
>>     --name <app-service-resourcename>
Getting scm site credentials for zip deployment
Starting zip deployment. This operation can take a while to complete ...
Deployment endpoint responded with status code 202
{
  "active": true,
  "author": "N/A",
  "author_email": "N/A",
  "complete": true,
  "deployer": "Push-Deployer",
  "end_time": "2020-08-17T06:51:33.3727401Z",
  "id": "734bf50d914d4bf8b00c504dffb4c33f",
  "is_readonly": true,
  "is_temp": false,
  "last_success_end_time": "2020-08-17T06:51:33.3727401Z",
  "log_url": "https://************.scm.azurewebsites.net/api/deployments/latest/log",
  "message": "Created via a push deployment",
  "progress": "",
  "received_time": "2020-08-17T06:51:31.5681765Z",
  "site_name": "************",
  "start_time": "2020-08-17T06:51:31.7056022Z",
  "status": 4,
  "status_text": "",
  "url": "https://************.scm.azurewebsites.net/api/deployments/latest"
}

エラーが出る場合は、デプロイするリソース名、圧縮ファイルの階層、圧縮ツールの変更で再度デプロイしてください。

learn-host-a-web-app-with-azure-app-service's People

Contributors

hosomi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.