You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Azure SQL Database Plugin integrates RightScale Self-Service with the basic functionality of the Azure SQL Database
Requirements
A general understanding CAT development and definitions
Refer to the guide documentation for details SS Guides
The admin, ss_designer & ss_end_user roles, in a RightScale account with SelfService enabled. admin is needed to retrieved the RightScale Credential values identified below.
Azure Service Principal (AKA Azure Active Directory Application) with the appropriate permissions to manage resources in the target subscription
The following RightScale Credentials
AZURE_APPLICATION_ID
AZURE_APPLICATION_KEY
The following packages are also required (See the Installation section for details):
Create RightScale Credentials with values that match the Application ID (Credential name: AZURE_APPLICATION_ID) & Authentication Key (Credential name: AZURE_APPLICATION_KEY)
In the Design section, use the Upload CAT interface to complete the following:
Upload each of packages listed in the Requirements Section
Upload the rs_azure_template.rb file located in this repository
How to Use
The Azure SQL Database Plugin has been packaged as plugins/rs_azure_sql. In order to use this plugin you must import this plugin into a CAT.
import"plugins/rs_azure_sql"
For more information on using packages, please refer to the RightScale online documentation. Importing a Package
Azure SQL Database resources can now be created by specifying a resource declaration with the desired fields. See the Supported Actions section for a full list of supported actions.
The resulting resource can be manipulated just like the native RightScale resources in RCL and CAT. See the Examples Section for more examples and complete CAT's.
Supported Resources
sql_server
databases
transparent_data_encryption
firewall_rule
elastic_pool
auditing_policy
security_policy
Usage
#Creates an SQL Server and DBparameter"subscription_id"dolike $rs_azure_sql.subscription_idendresource"sql_server",type: "rs_azure_sql.sql_server"donamejoin(["my-sql-server-",last(split(@@deployment.href,"/"))])resource_group"DF-Testing"location"Central US"propertiesdo{"version"=>"12.0","administratorLogin"=>"rightscale","administratorLoginPassword"=>"RightScale2017"}endendresource"database",type: "rs_azure_sql.databases"doname"sample-database"resource_group"DF-Testing"location"Central US"server_name@sql_server.nameendresource"transparent_data_encryption",type: "rs_azure_sql.transparent_data_encryption"doresource_group"DF-Testing"location"Central US"server_name@sql_server.namedatabase_name@database.namepropertiesdo{"status"=>"Disabled"}endendresource"firewall_rule",type: "rs_azure_sql.firewall_rule"doname"sample-firewall-rule"resource_group"DF-Testing"location"Central US"server_name@sql_server.namepropertiesdo{"startIpAddress"=>"0.0.0.1","endIpAddress"=>"0.0.0.1"}endendresource"elastic_pool",type: "rs_azure_sql.elastic_pool"doname"sample-elastic-pool"resource_group"DF-Testing"location"Central US"server_name@sql_server.nameendresource"auditing_policy",type: "rs_azure_sql.auditing_policy"doname"sample-auditing-policy"resource_group"DF-Testing"location"Central US"server_name@sql_server.namedatabase_name@database.namepropertiesdo{"state"=>"Enabled","storageAccountAccessKey"=>cred("storageAccountAccessKey"),"storageEndpoint"=>cred("storageEndpoint")}endendresource"security_policy",type: "rs_azure_sql.security_policy"doname"sample-security-policy"resource_group"DF-Testing"location"Central US"server_name@sql_server.namedatabase_name@database.namepropertiesdo{"state"=>"Enabled","storageAccountAccessKey"=>cred("storageAccountAccessKey"),"storageEndpoint"=>cred("storageEndpoint")}endend
Resources
sql_server
Supported Fields
Field Name
Required?
Description
name
Yes
The name of the sql server.
resource_group
Yes
Name of resource group in which to launch the Deployment
The Azure SQL Database Plugin makes no attempt to support non-Azure resources. (i.e. Allow the passing the RightScale or other resources as arguments to an SQL resource.)