- Learning Microsoft Azure
- Geoff Webber Cross
- 413字
- 2021-08-05 17:45:36
Configuring a website in the portal
Next, we need to create a website in Azure to publish our site on. We'll do this using the following procedure:
- From the Create New menu, go to COMPUTE | WEB SITE | QUICK CREATE and pick a name for the website:
- Click on CREATE WEBSITE and you should see your new website listed in the portal:
- Click on the newly listed website to go to the website's workspace:
- We're going to enable staged deployments, so we can deploy to a staged environment for testing, and then swap later for production (in Chapter 2, Designing a System for Microsoft Azure, we covered a section on environments and we're going to use a staging slot for testing). First, we need to put the website in a STANDARD service mode; so click on the SCALE tab and click on STANDARD under the WEB HOSTING PLAN MODE section:
- Watch the INSTANCE SIZE field as it may default to a large value incurring the highest cost; I dropped mine down to the smallest instance.
- Click on SAVE on the bottom toolbar, and then click on DASHBOARD so that we can enable staging:
- Click on the Add a new deployment slot link, enter a name for the deployment slot (staging is a sensible choice), and then click on the tick button. We'll see that the new staging site appears under the main site by clicking on the arrow:
- To publish the website, go to BUILD | Publish CustomerWebsite (you should select the name of your project):
- Select Windows Azure Web Sites as the publish target (this is probably the quickest way to publish for the first time; the Import option allows you to import a publish profile you've downloaded from the website dashboard, and Custom allows you to manually enter the publish details):
- Sign in with the Microsoft account you are using in the Azure portal, and then select the site you want to publish to from the drop-down list:
- Next, we will review the publish profile details. We can change the build and database connection options in the next settings wizard, but we can publish straight from here by clicking on Publish:
- Once we do this, we will see the publish profile included in the solution, which will speed up the process on the subsequent publish:
- We can watch the deployment process in the output window in Visual Studio; then, the default browser should launch, displaying our website in the Azure!
推薦閱讀
- 資本的眼睛
- 金融科技(FinTech)發展的國際經驗和中國政策取向(中國金融四十人論壇書系)
- Mastering System Center Configuration Manager
- 博弈論及其在經濟管理中的應用
- 企業能源審計與節能規劃
- Team Foundation Server 2013 Customization
- 陜西國家統計調查專題研究集萃(2006—2015)
- Salesforce Essentials for Administrators
- 中國政府統計問題研究
- 2016年度注冊會計師全國統一考試專用輔導教材(圖解版):審計
- Getting Started with Citrix VDI-in-a-Box
- 2017年度注冊會計師全國統一考試專用教材(圖解版):審計
- 內部控制審計功能與質量
- 計量經濟學理論與應用:基于Eviews的應用分析
- Building Dashboards with Microsoft Dynamics GP 2016(Second Edition)