Skip to main content

sql_discovery_site_data_source_controllers

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

Overview

Namesql_discovery_site_data_source_controllers
TypeResource
Idazure.migrate.sql_discovery_site_data_source_controllers

Fields

NameDatatypeDescription
discoverySiteDataSourceNametextfield from the properties object
discovery_site_idtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
siteNametextfield from the properties object
sqlSiteNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdiscoverySiteDataSourceName, resourceGroupName, siteName, sqlSiteName, subscriptionIdGet a SqlDiscoverySiteDataSource
list_by_sql_siteSELECTresourceGroupName, siteName, sqlSiteName, subscriptionIdList SqlDiscoverySiteDataSource resources by SqlSite
createINSERTdiscoverySiteDataSourceName, resourceGroupName, siteName, sqlSiteName, subscriptionIdCreate a SqlDiscoverySiteDataSource
deleteDELETEdiscoverySiteDataSourceName, resourceGroupName, siteName, sqlSiteName, subscriptionIdDelete a SqlDiscoverySiteDataSource

SELECT examples

List SqlDiscoverySiteDataSource resources by SqlSite

SELECT
discoverySiteDataSourceName,
discovery_site_id,
provisioning_state,
resourceGroupName,
siteName,
sqlSiteName,
subscriptionId
FROM azure.migrate.vw_sql_discovery_site_data_source_controllers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND sqlSiteName = '{{ sqlSiteName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new sql_discovery_site_data_source_controllers resource.

/*+ create */
INSERT INTO azure.migrate.sql_discovery_site_data_source_controllers (
discoverySiteDataSourceName,
resourceGroupName,
siteName,
sqlSiteName,
subscriptionId,
properties
)
SELECT
'{{ discoverySiteDataSourceName }}',
'{{ resourceGroupName }}',
'{{ siteName }}',
'{{ sqlSiteName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified sql_discovery_site_data_source_controllers resource.

/*+ delete */
DELETE FROM azure.migrate.sql_discovery_site_data_source_controllers
WHERE discoverySiteDataSourceName = '{{ discoverySiteDataSourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND sqlSiteName = '{{ sqlSiteName }}'
AND subscriptionId = '{{ subscriptionId }}';