Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > ServerTemplates > v12.11 LTS > ST > Microsoft IIS App Server (v12.11.2-LTS) > Microsoft IIS App Server (v12.11 LTS) - Runbook

Microsoft IIS App Server (v12.11 LTS) - Runbook

 

 

 


Table of Contents    

Long Term Support

icon-lts-v1.png

Stable, tested ServerTemplate assets

   ►  Runbook
  • Reference

Common Operational Tasks

Create a SQL Server User

Use the DB SQLS Create login operational script to create a new SQL Server user (login) and password for your application's use. Enter the following RightScript inputs before running this script.

Note: It's recommended that you set up credentials for password values and any other sensitive data as shown in the examples below.

Input Name Description Example Values
DB_NAME Default database to assign to the new SQL Server user. Text:MyDatabase
DB_NEW_LOGIN_NAME User name for the new SQL Server user.

Cred:SQL_SERVER_USER

DB_NEW_LOGIN_PASSWORD Password for the new SQL Server user. Cred:SQL_SERVER_PASSWORD
DB_REMOTE_SERVER_IP IP address of the target SQL Server. The script assumes that the default SQL Server port, 1433, is used for server communications. Text:180.100.100.38
DB_REMOTE_SQL_LOGIN Login ID for a SQL Server user with administrative permissions, used to create the new application-specific user account.  Cred:SQL_APPLICATION_USER
DB_REMOTE_SQL_PASSWORD Login password for a SQL Server user with administrative permissions. Cred:SQL_APPLICATION_PASSWORD


Support for Amazon Elastic Load Balancers (ELB)

To run your IIS server in conjunction with an Amazon Elastic Load Balancer (ELB), you must follow the steps below:

  1. Set up your Elastic Load Balancer. See Create a New AWS Elastic Load Balancer.
  2. Set the ELB_NAME input to the name of your designated ELB. (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are also required, and default to the corresponding environment variables.)
  3. Clone the IIS Application ServerTemplate so that you can modify its list of scripts. By default, the application ServerTemplate is designed to work with an HAProxy load balancer. In order for the application server to automatically connect and disconnect with an ELB at boot and decommission time, you must make a few modifications to the template.
  4. Replace the LB Register with HAProxy script in the Boot Script list with the AWS Register with ELB script.
  5. Replace the LB Deregister from HAProxy script in the Decommission Script list with the AWS Deregister from ELB script.
     

Note: If your ELB will uses the HTTPS protocol, refer to the next section for information on generating the required server certificate and private key files in PEM format.

Support for Rackspace Cloud Load Balancers (CLB)

To run your IIS server in conjunction with a Rackspace Cloud Load Balancer (CLB), you must follow the steps below:
  1. Clone the IIS Application ServerTemplate so that you can modify its list of scripts. By default, the application ServerTemplate is designed to work with an HAProxy load balancer. In order for the application server to automatically connect and disconnect with a CLB at boot and decommission time, you must make a few modifications to the template.
  2. Replace the LB Register with HAProxy script in the Boot Script list with the LB Register with CLB script.
  3. Replace the LB Deregister from HAProxy script in the Decommission Script list with the LB Deregister from CLB script.
  4. Set up your Cloud Load Balancer in the Rackspace Cloud Management Console. See Create a new Rackspace Cloud Load Balancer (CLB).
  5. Create a server or server array using the modified ServerTemplate and launch a server.

Generate a Server Certificate for SSL/TLS

To use the HTTPS (HTTP with SSL/TLS) protocol, the ELB and HAProxy load balancers require a server certificate and private key in X.509/PEM format.

IIS server certificates are typically exported in .pfx (PKCS#12) format. However, you can generate a PEM-formatted certificate and private key files for the load balancers using the SYS Convert PFX operational script, in conjunction with a .pfx (PKCS#12 format) server certificate file, included as a script attachment, and the following inputs:

  • CERT_FILE_NAME - The name of the .pfx certificate file attached to the SYS Convert PFX script.
  • CERT_PASSWORD - If the .pfx file is password protected, specify the password.
     

It's recommended that you create credentials to hide the sensitive values for these inputs for security reasons.

The SYS Convert PFX script saves your PEM-formatted certificate and key files as public.crt and private.pem, in the C:\Certificates directory on the IIS server.

Manually Archive IIS Logs

In Amazon and Rackspace environments, the SYS Configure IIS logs rotation policy boot script sets up a Windows scheduled task on your IIS server, which runs daily and archives any log entries older than one day to an ROS container (e.g. Amazon S3 bucket or Rackspace Cloud Files container) based on the REMOTE_STORAGE_ACCOUNT_PROVIDER input.

The SYS upload IIS logs operational script lets you manually run an IIS log archive on demand. The same inputs that are used for the SYS Configure IIS logs rotation policy script are used.

Switch the Default Website Location

By default, the IIS Download application code boot script places the application code into the following directory by default: C:\inetpub\wwwroot\release\<GMT-timestamp>

If the application code is located in a different directory, run the IIS Switch default website operational script and specify the correct path using the OPT_DEFAULT_SITE_ROOT_PATH input so that IIS knows the new location of the application code.

Windows Base

To learn more about the following topics that apply to all Windows-based ServerTemplates published by RightScale, please see Base ServerTemplate for Windows - Overview

  • Windows Firewall
  • Windows Automatic Updates
  • Knowledge Base (KB) Articles 
  • Microsoft Key Management Server (KMS)

Other Administrative Tasks

You must to post a comment.
Last modified
12:28, 31 Jul 2013

Tags

Classifications

This page has no classifications.

Announcements

None


© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.