Skip to main content

sql_servers_controllers

Creates, updates, deletes, gets or lists a sql_servers_controllers resource.

Overview

Namesql_servers_controllers
TypeResource
Idazure.migrate.sql_servers_controllers

Fields

NameDatatypeDescription
created_timestamptextfield from the properties object
editiontextfield from the properties object
engine_editiontextfield from the properties object
errorstextfield from the properties object
host_nametextfield from the properties object
hydrated_run_as_account_idtextfield from the properties object
hyperthread_ratiotextfield from the properties object
is_clusteredtextfield from the properties object
is_deletedtextfield from the properties object
is_high_availability_enabledtextfield from the properties object
logical_cpu_counttextfield from the properties object
machine_arm_idstextfield from the properties object
machine_overview_listtextfield from the properties object
max_server_memory_in_use_in_mbtextfield from the properties object
num_of_loginstextfield from the properties object
number_of_ag_databasestextfield from the properties object
number_of_user_databasestextfield from the properties object
physical_cpu_counttextfield from the properties object
port_numbertextfield from the properties object
product_support_statustextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
run_as_account_idtextfield from the properties object
siteNametextfield from the properties object
sqlServerNametextfield from the properties object
sqlSiteNametextfield from the properties object
sql_fci_propertiestextfield from the properties object
sql_server_nametextfield from the properties object
sql_start_timetextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
sum_of_user_databases_size_in_mbtextfield from the properties object
tagstextfield from the properties object
temp_db_size_in_mbtextfield from the properties object
updated_timestamptextfield from the properties object
versiontextfield from the properties object
visible_online_core_counttextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, siteName, sqlServerName, sqlSiteName, subscriptionIdGets the sql server.
list_by_sql_siteSELECTresourceGroupName, siteName, sqlSiteName, subscriptionIdGets the sql servers.
updateUPDATEresourceGroupName, siteName, sqlServerName, sqlSiteName, subscriptionIdUpdates the sql server tags.

SELECT examples

Gets the sql servers.

SELECT
created_timestamp,
edition,
engine_edition,
errors,
host_name,
hydrated_run_as_account_id,
hyperthread_ratio,
is_clustered,
is_deleted,
is_high_availability_enabled,
logical_cpu_count,
machine_arm_ids,
machine_overview_list,
max_server_memory_in_use_in_mb,
num_of_logins,
number_of_ag_databases,
number_of_user_databases,
physical_cpu_count,
port_number,
product_support_status,
provisioning_state,
resourceGroupName,
run_as_account_id,
siteName,
sqlServerName,
sqlSiteName,
sql_fci_properties,
sql_server_name,
sql_start_time,
status,
subscriptionId,
sum_of_user_databases_size_in_mb,
tags,
temp_db_size_in_mb,
updated_timestamp,
version,
visible_online_core_count
FROM azure.migrate.vw_sql_servers_controllers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND sqlSiteName = '{{ sqlSiteName }}'
AND subscriptionId = '{{ subscriptionId }}';

UPDATE example

Updates a sql_servers_controllers resource.

/*+ update */
UPDATE azure.migrate.sql_servers_controllers
SET
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND sqlServerName = '{{ sqlServerName }}'
AND sqlSiteName = '{{ sqlSiteName }}'
AND subscriptionId = '{{ subscriptionId }}';