1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ASP.NET Core WebアプリケーションをAzureにデプロイする

Last updated at Posted at 2019-09-06

ASP.NET Core Webアプリケーションを新規作成する

image.png

ASP.NET Core Webアプリケーション

image.png

テンプレートを選択

これを選ぶとMVCモデルのひな形が付いてきます
image.png

発行する

プロジェクト名を右クリックで発行
image.png

発行画面(更新モード)

すでに発行されている場合にはこちらの画面が表示される

image.png

IP制限

アプリケーションルートの直下にweb.configを作成する
image.png

ipAddress="XX.XX.XX.XX" に許可したいIPアドレスを入力する

wwwroot/web.config
 <system.webServer>
    <security>
      <ipSecurity allowUnlisted="false">
       <!-- YOUR IP Address -->
       <add allowed="true" ipAddress="XX.XX.XX.XX" subnetMask="255.255.255.0" />
      </ipSecurity>
    </security>
  </system.webServer>

参考:https://docs.microsoft.com/ja-jp/azure/app-service/app-service-web-get-started-dotnet

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?