1 / 25

雲端計算 Cloud Computing

雲端計算 Cloud Computing. Lab–Windows Azure Deploy your service. Agenda. Prepare work Deployment Configuration. Prepare work. Before deploying your service to Azure, you need An Azure account. A service well designed and developed using SDK tool on local environment. Storage Account.

fairly
Download Presentation

雲端計算 Cloud Computing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 雲端計算Cloud Computing Lab–Windows AzureDeploy your service

  2. Agenda • Prepare work • Deployment • Configuration

  3. Prepare work • Before deploying your service to Azure, you need • An Azure account. • A service well designed and developed using SDK tool on local environment.

  4. Storage Account

  5. Account • Sign in to http://msdn.microsoft.com/zh-tw/windowsazure/default.aspx and press the “Log into Portal”

  6. Add new service • Add new service

  7. Storage Account

  8. Storage Account • First, create storage account • Enter the service label and description, and submit

  9. Storage Account (cont.) • Choose the unique name for your storage service. • Select the region for your service.

  10. Storage Account (cont.) • You would get your storage account key.

  11. Hosted Service

  12. Hosted Service

  13. Hosted Service • First, create hosted service • Enter the service label and description, and submit

  14. Hosted Service (cont.) • Choose the unique name for your hosted service. • Select the region for your service. Note

  15. Result

  16. Publish

  17. Publish • Open your service by Admin. • Right click your service and choice publish. • Choice Create Service Package Only.

  18. Deploy

  19. Upload GuestBook.cspkg ServiceConfiguration.cscfg Label

  20. Set Configure

  21. Set Configure (cont.) • Replace the configure file as below • Replace the AccountName to your storage account name • Replace the AccountKey to your storage account key <?xml version="1.0"?> <ServiceConfigurationserviceName="GuestBook" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration"> <Role name="GuestBook_WebRole"> <Instances count="1" /> <ConfigurationSettings> <Setting name="DataConnectionString" value="DefaultEndpointsProtocol=https;AccountName=[YOUR_ACCOUNT_NAME];AccountKey=[YOUR_ACCOUNT_KEY]" /> <Setting name="DiagnosticsConnectionString" value="DefaultEndpointsProtocol=https;AccountName=[YOUR_ACCOUNT_NAME];AccountKey=[YOUR_ACCOUNT_KEY]" /> </ConfigurationSettings> </Role> <Role name="GuestBook_WorkerRole"> <Instances count="1" /> <ConfigurationSettings> <Setting name="DataConnectionString" value="DefaultEndpointsProtocol=https;AccountName=[YOUR_ACCOUNT_NAME];AccountKey=[YOUR_ACCOUNT_KEY]" /> <Setting name="DiagnosticsConnectionString" value="DefaultEndpointsProtocol=https;AccountName=[YOUR_ACCOUNT_NAME];AccountKey=[YOUR_ACCOUNT_KEY]" /> </ConfigurationSettings> </Role> </ServiceConfiguration>

  22. Run your service

  23. Note and Reference

  24. Note • While your deployment is suspended, it continues to accrue charges. Please delete the suspended deployment if you no longer wish to be charged for it. For more details visit Windows Azure Pricing FAQs.

  25. Reference • Hand-On lab • IntroductionToWindowsAzureVS2010

More Related