How to Configure and Azure Cloud Service (classic)

Important

Cloud Services (classic) is now deprecated for all customers as of September 1st, 2024. Any existing running deployments will be stopped and shut down by Microsoft and the data will be permanently lost starting October 2024. New deployments should use the new Azure Resource Manager based deployment model Azure Cloud Services (extended support).

You can configure the most commonly used settings for a cloud service in the Azure 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 manage the instances of your cloud service roles, or remote desktop into them.

Azure can only ensure 99.95 percent service availability during the configuration updates if you have at least two role instances 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.

Change a cloud service

After opening the Azure portal, navigate to your cloud service. From here, you manage many aspects of it.

Settings Page

The Settings or All settings links open up Settings where you can change the Properties, change the Configuration, manage the Certificates, set up Alert rules, and manage the Users who have access to this cloud service.

Azure cloud service settings

Manage Guest OS version

By default, Azure periodically updates your guest OS to the latest supported image within the OS family that you specified in your service configuration (.cscfg), such as Windows Server 2016.

If you need to target a specific OS version, you can set it in Configuration.

Set OS version

Important

Choosing a specific OS version disables automatic OS updates and makes patching your responsibility. You must ensure that your role instances are receiving updates or you may expose your application to security vulnerabilities.

Monitoring

You can add alerts to your cloud service. Select Settings > Alert Rules > Add alert.

Screenshot of the Settings pan with the Alert rules option highlighted and outlined in red and the Add alert option outlined in red.

From here, you can set up an alert. With the Metric drop-down box, you can set up an alert for the following types of data.

  • Disk read
  • Disk write
  • Network in
  • Network out
  • CPU percentage

Screenshot of the Add an alert rule pane with all the configuration options set.

Configure monitoring from a metric tile

Instead of using Settings > Alert Rules, you can select on one of the metric tiles in the Monitoring section of the cloud service.

Cloud Service Monitoring

From here you can customize the chart used with the tile, or add an alert rule.

Reboot, reimage, or remote desktop

You can set up remote desktop through the Azure portal (set up remote desktop), PowerShell, or through Visual Studio.

To reboot, reimage, or remote into a Cloud Service, select the cloud service instance.

Cloud Service Instance

You can then initiate a remote desktop connection, remotely reboot the instance, or remotely reimage (start with a fresh image) the instance.

Cloud Service Instance Buttons

Reconfigure your .cscfg

You may need to reconfigure your cloud service through the service config (cscfg) file. First you need to download your .cscfg file, modify it, then upload it.

  1. Select on the Settings icon or the All settings link to open up Settings.

    Settings Page

  2. Select on the Configuration item.

    Configuration Blade

  3. Select on the Download button.

    Download

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

    Upload

  5. Select the .cscfg file and select OK.

Next steps