您的位置:首页 > 移动开发

申请微软Azure(云服务) 免费账号和安装Application Insight(网站健康监控)

2016-10-02 06:47 447 查看
申请微软Azure(云服务) 免费账号和安装Application Insight(网站健康监控)

1. https://imagine.microsoft.com  注册学生账号并激活左下角 Azure 需要手机,邮件校验,无需信用卡。

2. 安装VS2015 和 Azure SDK for .NET v2.9

3. 打开VS2015, File > New > Project > Web > ASP.NET Web Application (under the Visual C#),

     a.  上方选择 .NET Framework 4.5.2  

     b.  右边选择账号,Add Application Insights  选勾

     下一页, 选择MVC, 右侧有Microsoft Azure,    Host in the cloud 选勾

     选择App Service  按 OK

     建立 App Service, 右上方选择Azure账号,

     输入Web App Name (唯一azurewebsites.net), 

     选择建立组和App Service Plan (默认选项)

     按OK 建立完成。

  Cloud Explorer 窗口可看到已经建立的内容

  Solution Explorer 在 project 名下,鼠标右键,选择 Publish.

4. 登录 https://portal.azure.com/ 查看虚拟机已经安装好。

【Application Insight】- VS 命令行窗口下输入

Install-Package Microsoft.ApplicationInsights.Web   //安装软件包

VS2015 ->tools->Extensions and updats->online-> 查找 insight-》安装:

(Microsoft Corporation) Developer Analytics Tools V7080927.1

抬头Project 菜单下和鼠标右手菜单会出现 Application insight

重新启动VS, 

详细可参考: Creating a virtual machine for a web application with Visual Studio
https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-classic-web-app-visual-studio/ https://azure.microsoft.com/en-gb/documentation/articles/web-sites-dotnet-get-started/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息