How to Configure Cloud Services

To use this feature and other new Windows Azure capabilities, sign up for the free preview.

You can configure the most commonly used settings for a cloud service in the Windows Azure Management Portal. Or, if you like to update your configuration files directly, download a service configuration file to update, and then upload the updated file and update the cloud service with the configuration changes. Either way, the configuration updates are pushed out to all role instances.

You can also enable a Remote Desktop connection to one or all roles running in your cloud service. Remote Desktop allows you to access the desktop of your application while it is running and troubleshoot and diagnose problems. You can enable a Remote Desktop connection to your role even if you did not configure the service definition file (.csdef) for Remote Desktop during application development. There is no need to redeploy your application in order to enable a Remote Desktop connection.

Windows Azure can only ensure 99.95 percent service availability during the configuration updates if you have at least two role instances (virtual machines) for every role. That enables one virtual machine to process client requests while the other is being updated. For more information, see Service Level Agreements.

Table of Contents

How to: Update the cloud service configuration

  1. In the Windows Azure Management Portal, click Cloud Services. Then click the name of the cloud service to open the dashboard.

  2. Click Configure.

    On the Configure page, you can configure monitoring, update role settings, and choose the guest operating system and family for role instances (virtual machines).

  3. In monitoring settings, set the monitoring level to Verbose or Minimal, and configure the diagnostics connection strings that are required for verbose monitoring. For instructions, see How to Monitor Cloud Services.

  4. For service roles (grouped by role), you can update the following settings:

    • Settings Modify the values of miscellaneous configuration settings that are specified in the ConfigurationSettings elements of the service configuration (.cscfg) file.

    • Certificates Change the certificate thumbprint that's being used in SSL encryption for a role. To change a certificate, you must first upload the new certificate (on the Certificates page). Then update the thumbprint in the certificate string displayed in the role settings.

  5. In operating system settings, you can change the operating system family or version for role instances (virtual machines), or choose Automatic to resume automatic updates of the current operating system version. The operating system settings apply to web roles and worker roles, but do not affect VM roles that were added to hosted services in the previous Windows Azure Management Portal.

    When you deploy a new cloud service, you can choose either the Windows Server 2008 R2, Windows Server 2008 with Service Pack 2 (SP2), or Windows Server 2012 operating system. During deployment, the most recent operating system version is installed on all role instances, and the operating systems are updated automatically by default.

    If you need for your cloud service to run on a different operating system version because of compatibility requirements in your code, you can choose an operating system family and version. When you choose a specific operating system version, automatic operating system updates for the cloud service are suspended. You will need to ensure the operating systems receive updates.

    If you resolve all compatibility issues that your apps have with the most recent operating system version, you can resume automatic operating system updates by setting the operating system version to Automatic.

  6. To save your configuration settings, and push them to the role instances, click Save. (Click Discard to cancel the changes.) Save and Discard are added to the command bar after you change a setting.

To update a cloud service configuration file manually

  1. Download a cloud service configuration file (.cscfg) with the current configuration. On the Configure page for the cloud service, click Download. Then click Save, or click Save As to save the file.

  2. After you update the service configuration file, upload and apply the configuration updates:

    a. On the Configure page, click Upload.

    Upload a New Configuration File opens.

    b. In Configuration file, use Browse to select the updated .cscfg file.

    c. If your cloud service contains any roles that have only one instance, select the Apply configuration even if one or more roles contain a single instance check box to enable the configuration updates for the roles to proceed.

    Unless you define at least two instances of every role, Windows Azure cannot guarantee at least 99.95 percent availability of your cloud service during service configuration updates. For more information, see Service Level Agreements.

    d. Click OK (checkmark).

How to: Configure remote access to role instances

Remote Desktop enables you to access the desktop of a role running in Windows Azure. You can use a Remote Desktop connection to troubleshoot and diagnose problems with your application while it is running. You can enable a Remote Desktop connection in your role during application design or after you have deployed the application to Windows Azure (while the role is running). Enabling a Remote Desktop connection in a running role through the Management Portal does not require you to redeploy your application. To authenticate the Remote Desktop connection you can use a previously uploaded certificate or you can create a new certificate.

On the Configure page for your cloud service, you can enable Remote Desktop or change the local Administrator account or password used to connect to the virtual machines, the certificate used in authentication, or the expiration date.

Note If your cloud service consists of two or more connected Windows Server-based virtual machines, you don’t have to configure remote access, as these virtual machines are configured automatically for Remote Desktop.

To configure Remote Access in the service definition file

Add Import elements to the service definition file (.csdef) to import the RemoteAccess and RemoteForwarder modules into the service model. When those modules are present, Windows Azure adds the configuration settings for Remote Desktop to the service configuration file. To complete the Remote Desktop configuration, you will need to import a certificate to Windows Azure, and specify the certificate in the service configuration file. For more information, see Set Up a Remote Desktop Connection for a Role in Windows Azure.

To enable or modify Remote Access for role instances in the Management Portal

  1. Log in to the Management Portal and click Cloud Services. Then click the name of the cloud service to open the dashboard.

  2. Open the Configure page for the cloud service, and click Remote.

    Configure Remote Desktop displays the settings (if any) that were added to the service configuration file when the cloud service was deployed, as shown below.

Warning

All role instances will be restarted when you first enable Remote Desktop and click OK (checkmark). To prevent a reboot, the certificate used to encrypt the password must be installed on the role. If no certificate is installed you will see this option:

![Cloud services create certificate](../media/CloudServices_CreateNewCertDropDown.png)

To prevent a restart, install a certificate and then return to this dialog (see Using Remote Desktop with Windows Azure Roles for more information). If you choose an existing certificate, then a configuration update will be sent to all the instances in the role.

  1. In Roles, select the service role you want to update or select All for all roles.

  2. Make any of the following changes:

    • To enable Remote Desktop, select the Enable Remote Desktop check box. To disable Remote Desktop, clear the check box.

    • Create an account to use in Remote Desktop connections to the role instances.

    • Update the password for the existing account.

    • Select an uploaded certificate to use for authentication (upload the certificate using Upload on the Certificates page) or create a new certificate.

    • Change the expiration date for the Remote Desktop configuration.

  3. When you finish your configuration updates, click OK (checkmark).

  4. To connect to a role instance:

    a. Click Instances to open the Instances page.

    b. Select a role instance that has Remote Desktop configured.

    c. Click Connect, and follow the instructions to open the desktop of the virtual machine.

    d. Click Open and then Connect to start the Remote Desktop connection.

To disable Remote Access for role instances in the Management Portal

  1. Log in to the Management Portal and click Cloud Services. Then click the name of the cloud service to open the dashboard.

  2. Open the Configure page for the cloud service, and click Remote.

  3. In Roles, select the service role you want to update or select All for all roles.

  4. Un-check, or clear, the Enable Remote Desktop check box.

  5. Click OK (checkmark).

[Windows Azure] How to Configure Cloud Services的更多相关文章

  1. [Windows Azure] How to Monitor Cloud Services

    How to Monitor Cloud Services To use this feature and other new Windows Azure capabilities, sign up ...

  2. [Windows Azure] How to Manage Cloud Services

    How to Manage Cloud Services To use this feature and other new Windows Azure capabilities, sign up f ...

  3. [Windows Azure] Walkthrough to Configure System Center Management Pack for Windows Azure Fabric Preview for SCOM 2012 SP1 (with a MetricsHub Bonus)

    The wait is finally over. This is a huge update to the Azure Management Pack over the one that was r ...

  4. [Windows Azure] Virtual Machine and Cloud Service Sizes for Windows Azure

    Virtual machine size CPU cores Memory OS disk space–cloud services OS disk space–virtual machines Ma ...

  5. [Windows Azure] What is a cloud service?

    What is a cloud service? When you create an application and run it in Windows Azure, the code and co ...

  6. Windows Azure中WebSite 网站, Cloud Service 云服务,Virtual Machine 虚拟机的比较

    在Windows Azure服务平台里,Web Site特点是: 在Windows Azure上构建高度可扩展的Web站点. 快速.轻松部署一个高度可扩展的云环境,并且可以从很小的规模开始. 使用您所 ...

  7. [Windows Azure] Configuring and Deploying the Windows Azure Email Service application - 2 of 5

    Configuring and Deploying the Windows Azure Email Service application - 2 of 5 This is the second tu ...

  8. [Windows Azure] How to Create and Deploy a Cloud Service?

    The Windows Azure Management Portal provides two ways for you to create and deploy a cloud service: ...

  9. Configuring a Windows Azure Project

    A Windows Azure project includes two configuration files: ServiceDefinition.csdef and ServiceConfigu ...

随机推荐

  1. linux写环境变量对字符转义

    之前在配置oracle环境换了或者jdk环境,用脚本初始化配置,发现$JAVA_HOME被真实路径取代,这不操蛋吗,今天无意间发现echo  -e可以转义特殊字符 得之兴业,岁在今朝! 对oracle ...

  2. 转:3d max 2013 安装教程,凭着一种互联网精神提供给广大朋友

    看到有人在ps区咨询如何安装3d max教程,当你进行第一步之前,请先断开网络连接第一步:运行安装程序 第二步:接受安装协议,点击下一步会提示输入序列号 第三步:你会看到已经安装完成了的界面 第四部: ...

  3. 在quartz的Job中获得Spring的WebApplicationContext或ServletContext

    有时候我们需要在web工程中定时器类里面获得spring的IOC容器,即WebApplicationContext,用它来获取实现了某接口的所有的bean,因为@Autowired貌似只能注入单个be ...

  4. Log4j 把不同包的日志打印到不同位置

    如果需要将不同的日志打印到不同的地方,则需要定义不同的Appender,然后定义每一个 Appender的日志级别.打印形式.输出位置! 配置log4j.properties文件如下: ####### ...

  5. CSVWriter生成文件时writer.writeRecord();方法保存的文件末尾多一个空行

    一.问题,CSVWriter生成文件时使用writer.writeRecord();方法保存的文件末尾多一个空行,效果图如下: 目标结果:(去掉末尾空行) 二.关键代码如下(修改前代码): /** * ...

  6. [Spring学习笔记 5 ] Spring AOP 详解1

    知识点回顾:一.IOC容器---DI依赖注入:setter注入(属性注入)/构造子注入/字段注入(注解 )/接口注入 out Spring IOC容器的使用: A.完全使用XML文件来配置容器所要管理 ...

  7. HDU 4302 Holedox Eating (STL + 模拟)

    Holedox Eating Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)To ...

  8. B. Eight Point Sets

    B. Eight Point Sets http://codeforces.com/contest/334/problem/B   time limit per test 1 second memor ...

  9. webpack window 使用sass来编译css样式

    1.执行安装: npm install sass-loader --save-dev (此处不行的话就换上npm install node-sass) 2.稍微修改一下config,删掉我们先前添加的 ...

  10. iOS 特定时间内才做某件事,有类似奇葩需求可以参考

    我们项目启动的时候要弹出一个广告窗口,很简单的一个功能,服务器的判断一下满足条件,即返回数据,客户端判断数据部位NULL,则弹出弹窗但是老板说,这个要时间短弹出,每天的中午12点到下午2点不能弹出来这 ...