Skip to main content

import_sites_controllers

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

Overview

Nameimport_sites_controllers
TypeResource
Idazure.migrate.import_sites_controllers

Fields

NameDatatypeDescription
discovery_solution_idtextfield from the properties object
locationtextThe geo-location where the resource lives
master_site_idtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
service_endpointtextfield from the properties object
siteNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, siteName, subscriptionIdGet a ImportSite
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet all import sites.
list_by_subscriptionSELECTsubscriptionIdList ImportSite resources by subscription ID
createINSERTresourceGroupName, siteName, subscriptionIdCreate a ImportSite
deleteDELETEresourceGroupName, siteName, subscriptionIdDelete a ImportSite
updateUPDATEresourceGroupName, siteName, subscriptionIdUpdate a ImportSite
export_uriEXECresourceGroupName, siteName, subscriptionIdMethod to export a site.
import_uriEXECresourceGroupName, siteName, subscriptionIdMethod to import a site.

SELECT examples

List ImportSite resources by subscription ID

SELECT
discovery_solution_id,
location,
master_site_id,
provisioning_state,
resourceGroupName,
service_endpoint,
siteName,
subscriptionId,
tags
FROM azure.migrate.vw_import_sites_controllers
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.migrate.import_sites_controllers (
resourceGroupName,
siteName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ siteName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a import_sites_controllers resource.

/*+ update */
UPDATE azure.migrate.import_sites_controllers
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified import_sites_controllers resource.

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