Windows Azure Platform有Windows Azure、SQL Azure、Azure AppFabric三部分。
Windows Azure提供一个具有计算、存储、托管和管理功能的可扩展环境。它通过安全的连接、消息传送和标识管理链接到内部部署的应用程序。
这节我们体验Windows Azure,必备软件:
Microsoft Visual Studio 2010
Microsoft SQL Server 2008 R2
Windows Azure Tools for Microsoft Visual Studio 2010
Windows Azure Platform账户
这次体验有下面几个步骤,分别是:
创建云服务项目
调试云服务项目
发布云服务项目
上传云服务项目
创建云服务项目
首先理解下Web托管角色功能,利用这个功能,我们创建一个新网站,然后将它托管在Windows Azure内。
以管理员身份启动Visual Studio 2010,创建一个新的Azure云服务项目。选择“云”模板类型的“Windows Azure 云服务”项目模板。将这个新项目命名为“HelloAzure”,单击“确定”之后,立即弹出一个新的向导。
选择“调试”->“开始调试”(F5)。
如果出现一个错误对话框,显示“Windows Azure Tools: Failed to initialize Development Storage service. Unable to start Development Storage. Failed to start Development Storage: the SQL Server instance ‘localhost\SQLExpress’ could not be found.Please configure the SQL Server instance for Development Storage using the ‘DSInit’ utility in the Windows Azure SDK.”错误,则需要手动配置开发存储的数据库实例。