This document describes how to deploy a SQL Server workload on Google Cloud by using the Guided Deployment Automation tool in Workload Manager.
Configure SQL Server deployment
To configure and deploy a SQL Server workload, perform the following tasks:
In the Google Cloud console, go to the Workload Manager page.
In the Workload Manager navigation pane, click Deployments.
Select the project in which you want to create the deployment.
Click Create Deployment and choose SQL Server.
In the Deployment basics section, enter the following information about your deployment and workload requirements.
Workload Manager uses this basic information to determine the data to be collected in the subsequent tabs. Workload Manager also provides recommendations for your deployment configuration based on the basic settings:
Enter a name to describe the workload you are deploying. For example,
sqlserver-prod-1
. This name must be unique in the project where you're deploying the workload.You can use lowercase alphanumeric characters and hyphens to specify the name, but it must start with a letter and must not end with a hyphen. It can have minimum of 3 and maximum of 22 characters.
In the Deployment description field, add a description for your workload, which is later displayed on the dashboard that shows your deployments.
In the Service account field, select a service account that you want to attach to the deployment. Workload Manager uses this service account to call other APIs and services for creating resources required for the deployment. You can either select an existing service account or create a new service account.
Select whether the workload is intended for production use or non-production use. Note: Certain default values are used in the tool based on the environment selection.
Select the operating system. For Preview, only the Windows operating system is supported.
Select the licensing type for Windows from the following options:
- Bring your own license (BYOL)
- Pay as you go (PAYG)
Select the licensing type for SQL Server from the following options:
- Bring your own license (BYOL)
- Pay as you go (PAYG)
Select the OS image from public or custom images.
Select the deployment strategy:
- Single node: each SQL Server instance is deployed on its own VM
- High availability: highly available SQL Server cluster is deployed across multiple zones
Select the availability mode:
- Availability group (AG)
- Failover cluster instance (FCI)
In the VM name prefix field, enter a prefix that is applied to the names of all VMs created during the deployment. A maximum of seven characters are allowed for the prefix.
In the Software installation media bucket field, select the Cloud Storage bucket that holds the SQL Server installation media you uploaded. The bucket must exist within the project in which you're creating the deployment.
For more information, see Prepare SQL Server installation files for deployment.
Click Continue to proceed.
In the Location & networking tab, enter the following.
- Select the Google Cloud project in which you want to deploy the workload.
- Select the Google Cloud region in which you want to deploy the workload.
- Select a zone from the specified region.
- Select a zone from the specified region for deploying the secondary system. This field is visible only if you have specified HA as the deployment model in the basics section.
- Select the Virtual Private Cloud (VPC) network into which you're deploying the workload.
- Select the subnet in the specified VPC network where you want to deploy the workload.
- Select a method for providing external internet access to the VMs. For
more information, see Prerequisites.
- Cloud NAT: If you want to provide external internet access using a Cloud NAT gateway that you have already created for the specified network.
- Allow External IP: If you want to provide external internet access by reserving a static external IP address on each VM.
- Select Create a new DNS zone. Workload Manager automatically creates a DNS to allow communication between VMs in the deployment.
Click Continue.
In the Active Directory tab, enter the following.
- Select the Secret Manager name that corresponds to the password for the username specified in the Domain username field to connect to Active Directory. Workload Manager uses this password throughout the deployment and installation process. This secret must exist in the Google Cloud project in which you create the deployment.
- Specify the name of the AD user account used to join the VMs to Active Directory.
- Specify the Active Directory IP address.
- Specify the Active Directory organizational unit.
Click Continue.
In the Database tab, enter the following information:
- Select the Secret Manager name that corresponds to the password used for the database.
- Select the tenancy model from the following options:
- Shared
- Sole tenant Note: The shared tenancy option is not available for Windows BYOL licenses.
- Select a machine family for the database VMs.
- Select a machine type for the database VMs.
- Select the type of block storage for the VM.
- Select the SMT off option to turn on or turn off simultaneous multithreading, which is also called as hyper-threading.
- Select the TempDB on local SSD option to use a local SSD to store TempDB.
To review the deployment configuration, click Continue.
To deploy the SQL Server workload, click Create.
Review the deployment status
After you click Create, you see the Deployment dashboard, where you can monitor the status of your deployment. You can monitor the status of the deployment by hovering over the Status icon.
You receive a notification in the Google Cloud console when Workload Manager completes the deployment process. If the deployment is not successful, you receive a failure notification. You can view additional information about the error on the Deployment Details page by clicking the deployment name on the dashboard. See Troubleshoot deployment errors.
Troubleshoot deployment errors
If the error occurred during the Terraform file creation, then follow these steps:
- If the underlying issue requires changing the
configuration, for example, if deployment name or VM prefix was not unique, then
do the following:
- Delete the deployment.
- Make a new deployment using the correct configuration.
- If the underlying issue does not require changing the configuration, for example, quota issues:
- Fix the issue.
- Click Retry on the error message to resume the deployment process.
If the error occurred during the PowerShell Desired State Configuration (DSC) file creation:
- If the underlying issue requires changing the configuration, for example,
the wrong software bucket was chosen:
- Delete the deployment.
- Create a new deployment using the correct configuration.
- If the underlying issue does not require changing the configuration, for
example, the OS package failed to download:
- Resolve the underlying problem, if applicable.
- Stop and start the Ansible Runner VM named VM_PREFIX-ansible-runner from the Compute Engine dashboard. VM_PREFIX is the prefix you specified for all VMs in your deployment. This process restarts the Ansible creation for the deployment.