Deploying Java Web Apps in Azure Cloud Service (2)

Source: Internet
Author: User

Connect to the above.


9. Before publishing, we need to make some settings for our subscriptions, because by default Azure's service end points to the Azure Global site, and if we want to publish the service in the Azure China site, we need to make a simple setup, in Eclipse, Open preferences (preference), locate Azure, and on the Service endpoint page, select Windowsazure. Ability (China), select OK:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/74/02/wKioL1YN4uqDO3rfAAJ4zHMjQes072.jpg "title=" Azureaccountsetting.png "alt=" Wkiol1yn4uqdo3rfaaj4zhmjqes072.jpg "/>

10. Back to the project, select Myazuredeploy and Right-click, select Azure,properties, the first option is to choose whether to configure remote access, because the cloud service underlying is actually Windows Server, so this is actually configured for RDP access, You can configure it directly in Azure portal, this example chooses not to configure

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/74/05/wKiom1YN5CKAyo86AAOhi5hBHlY706.jpg "title=" Projproperty.png "alt=" wkiom1yn5ckayo86aaohi5hbhly706.jpg "style=" float:none; "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/74/02/wKioL1YN5DDwM4SIAAHF2A31qkk760.jpg "title=" Remoteaccess.png "alt=" wkiol1yn5ddwm4siaahf2a31qkk760.jpg "style=" float:none; "/>

11. The second item is the definition of role, in which you can choose the size of VM virtual machine, and the number of instances you want to start in the cloud service, click Modify, modify the number of instances to 2, cloud service instance 2 level above only SLA guarantee OH:)

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/74/02/wKioL1YN5KnwthAJAAI7JAVK4B0495.jpg "title=" Roledef. PNG "alt=" Wkiol1yn5knwthajaai7javk4b0495.jpg "/>

12. Finally you need to add your subscription to let the deployment script know which subscription you want to deploy the app under. Click the button "Import from Publish-setting file" to automatically jump to the Azure China login screen, enter your Azure account password, The setting file will be downloaded and imported automatically, as shown in, click the OK button to exit when finished

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/74/05/wKiom1YN6hzA2J_3AAJjtcd_Qqw781.jpg "title=" Downloadpublishing.png "alt=" Wkiom1yn6hza2j_3aajjtcd_qqw781.jpg "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/74/02/wKioL1YN5ZGCsonhAAFfDjkEDAw846.jpg "title=" Azuresubs.png "alt=" Wkiol1yn5zgcsonhaaffdjkedaw846.jpg "/>

13. Back to the project, right-click to select Azure, select the first item "Deploy to Azure Cloud", you can see in that interface, you have listed your subscription, the default storage account you are deploying to the cloud subscription, cloud service and so on, because this is a new deployment, so we choose to create new storage , apply all instances of the deployment to a storage account, select the "New" button, enter the storage account name in the popup interface, select location, and note that if you want your app to be deployed in east or north, Then the corresponding subsequent configuration will need to select the same region :

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/74/02/wKioL1YN6ULiCaFPAAMe2-Ko_bY214.jpg "title=" Deploytocloud-1.png "alt=" Wkiol1yn6ulicafpaame2-ko_by214.jpg "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/74/02/wKioL1YN6CvQvbgEAAIYu0zJ_P0897.jpg "title=" Deploy-2-storageaccount.png "alt=" Wkiol1yn6cvqvbgeaaiyu0zj_p0897.jpg "/>

14. In the same vein, choose New Cloud Service, with the name Myhouse in the example, and the same choice of China East as the region:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/74/05/wKiom1YN6SCAsurFAAH-9pgVvzQ980.jpg "title=" Newcloudservice.png "alt=" Wkiom1yn6scasurfaah-9pgvvzq980.jpg "/>

15. After the configuration is complete as shown, click Publish, then the deployment program automatically helps you create a storage account, cloud service, create a virtual machine, publish the application:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/74/05/wKiom1YN6e-D8-glAAITjwRRkx8547.jpg "title=" Deploy-3.png "alt=" wkiom1yn6e-d8-glaaitjwrrkx8547.jpg "style=" float:none; "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/74/02/wKioL1YN6f7z0H5gAAbI1mSjwT4823.jpg "title=" Deploying.png "alt=" wkiol1yn6f7z0h5gaabi1msjwt4823.jpg "style=" float:none; "/>

16. After the deployment is complete, you can log in to your Azure management portal to view the deployed cloud services and instances, and on the dashboard of the cloud service, you can find the URL of the site, select the instance page, and you can see that according to our definition, 2 instances have been created for the change cloud service. And partly in different fault domains:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/74/02/wKioL1YN6yaBpGoLAAIeBV5ph6U884.jpg "title=" Cs-portal.png "alt=" wkiol1yn6yabpgolaaiebv5ph6u884.jpg "style=" float:none; "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/74/05/wKiom1YN6xnzQVJtAAD7yJAat7o050.jpg "title=" Portal-instance. PNG "alt=" wkiom1yn6xnzqvjtaad7yjaat7o050.jpg "style=" float:none; "/>

17. Finally, we can test our release results, enter the site name in your browser, and the app name, for example: http://XXXXX.chinacloudapp.cn/greenhouse/, you can see your Java The Web service works as follows:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/74/02/wKioL1YN67rzsC5rAAHVI4ZLIVM604.jpg "title=" Greenhousecs.png "alt=" Wkiol1yn67rzsc5raahvi4zlivm604.jpg "/>


This article is from the "cloud Big Data Life" blog, make sure to keep this source http://cloudapps.blog.51cto.com/3136598/1699972

Deploying Java Web Apps in Azure Cloud Service (2)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.