Skip to main content

hyperv_sites_controllers

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

Overview

Namehyperv_sites_controllers
TypeResource
Idazure.migrate.hyperv_sites_controllers

Fields

NameDatatypeDescription
agent_detailstextfield from the properties object
appliance_nametextfield from the properties object
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
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 HypervSite
createINSERTresourceGroupName, siteName, subscriptionIdCreate a HypervSite
deleteDELETEresourceGroupName, siteName, subscriptionIdDelete a HypervSite
updateUPDATEresourceGroupName, siteName, subscriptionIdUpdate a HypervSite
compute_error_summaryEXECresourceGroupName, siteName, subscriptionIdMethod to get site error summary.
computeusageEXECresourceGroupName, siteName, subscriptionIdGet a hyperv site usage.
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.
summaryEXECresourceGroupName, siteName, subscriptionIdMethod to get site usage.

SELECT examples

Get a HypervSite

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

INSERT example

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

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

UPDATE example

Updates a hyperv_sites_controllers resource.

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

DELETE example

Deletes the specified hyperv_sites_controllers resource.

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