Database Reference
In-Depth Information
iles and the service model iles. Two iles, service deinition ile and service coniguration ile, are
used by CSPack to deine the contents of the package. Before using the CSPack command, you
may need to conigure the contents in these two iles.
MSBuild is another tool that can be used to package an application. You need to run the
MSBuild command in the Microsoft Visual Studio command prompt. he MSBuild command
relies on its XML schema ile to control the packaging.
Managing Application : Windows Azure provides various management tools for managing,
monitoring, and debugging applications. REST is a type of architecture designed for large-scale
network software by using web protocols and technologies. With REST-based interfaces, the man-
agement task can be done through web browsers. Developers can use Windows Azure Diagnostics
to collect diagnostic data from an application running in Windows Azure. With the collected
diagnostic data, developers can accomplish many management tasks such as troubleshooting,
performance tuning, monitoring running processes, resource usage analysis, and activity auditing.
When deploying applications from local computers to the cloud, Windows Azure allows the devel-
oper to update the roles to adapt to the cloud computing environment. he developer can stop an
application for ixing a bug. hen, redeploy the application after the bug is ixed. With Windows
Azure, developers can use a staging development process to avoid application downtime. When
upgrading an application to a new version, an in-place upgrade can be used by the developer
to replace a running application without interrupting the application's operation. To make the
upgrading process go smoothly, the developer should consider a strategy to update the application
without interrupting the service.
ACTIVITY 10.1 DEPLOYING WEB FORM TO WINDOWS AZURE
In the last chapter, you created the web form application, Class Schedule Management. To
deploy this application to Windows Azure, you should irst reconigure the application to
make it suitable for Windows Azure. hen, the application can be deployed with the tools
provided by Visual Studio.
1. To log on to the virtual machine, you need to log on to the Windows Azure Management
Portal through your web browser. After logging in, click V IRTUAL MACHINES .
Select the server myserver and click CONNECT . hen, log on to the virtual machine
with your user name and password.
2. After logging in, press the Windows Icon key and right click the icon Visual Studio
2012 on the tile. Click Run as administrator .
3. Click the link MyWebForm to open the project. Right click on the MyWebForm
solution link in the Solution Explorer pane. Select Add Windows Azure Cloud
Service Project (Figure 10.9).
4. After the New Windows Azure Project dialog is added, expand the MyWebForm.
Azure node. You should be able to see the default Web role MyWebForm shown in
Figure 10.10. he role points to the web form MyWebForm built earlier.
5. To set the MyWebFrom. A zure project as the startup project, right click the project
and select Set as StartUp Project as shown in Figure 10.11.
6. Click the Start Debugging icon to run the cloud project. You should be able to see
the Class Management web page in your browser as shown in Figure 10.12.
 
Search WWH ::




Custom Search