Skip to main content

sites_controllers

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

Overview

Namesites_controllers
TypeResource
Idazure.migrate.sites_controllers

Fields

NameDatatypeDescription
agent_detailstextfield from the properties object
appliance_nametextfield from the properties object
discovery_solution_idtextfield from the properties object
e_tagtextfield 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
service_principal_identity_detailstextfield from the properties object
siteNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, siteName, subscriptionIdGet a VmwareSite
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet all the vmware sites in the resource group.
list_by_subscriptionSELECTsubscriptionIdGet all the vmware sites in the subscription.
createINSERTresourceGroupName, siteName, subscriptionIdCreate a VmwareSite
deleteDELETEresourceGroupName, siteName, subscriptionIdDelete a VmwareSite
updateUPDATEresourceGroupName, siteName, subscriptionIdUpdate a VmwareSite
compute_error_summaryEXECresourceGroupName, siteName, subscriptionIdMethod to get site error summary.
computeusageEXECresourceGroupName, siteName, subscriptionIdMethod to get site error summary.
export_applicationsEXECresourceGroupName, siteName, subscriptionIdMethod to generate report containing
machine and the deep discovery of the application installed in the machine.
export_machine_errorsEXECresourceGroupName, siteName, subscriptionIdMethod to generate report containing
machine and the errors encountered during guest discovery of the machine.
export_machinesEXECresourceGroupName, siteName, subscriptionIdMethod to generate report containing
machine and the deep discovery of the application installed in the machine.
summaryEXECresourceGroupName, siteName, subscriptionIdMethod to get site usage/summary.

SELECT examples

Get all the vmware sites in the subscription.

SELECT
agent_details,
appliance_name,
discovery_solution_id,
e_tag,
location,
master_site_id,
provisioning_state,
resourceGroupName,
service_endpoint,
service_principal_identity_details,
siteName,
subscriptionId,
tags
FROM azure.migrate.vw_sites_controllers
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a sites_controllers resource.

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

DELETE example

Deletes the specified sites_controllers resource.

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