Skip to main content

hyperv_host_controllers

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

Overview

Namehyperv_host_controllers
TypeResource
Idazure.migrate.hyperv_host_controllers

Fields

NameDatatypeDescription
created_timestamptextfield from the properties object
errorstextfield from the properties object
fqdntextfield from the properties object
hostNametextfield 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
subscriptionIdtextfield from the properties object
updated_timestamptextfield from the properties object
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECThostName, resourceGroupName, siteName, subscriptionIdGet a HypervHost
list_by_hyperv_siteSELECTresourceGroupName, siteName, subscriptionIdList HypervHost resources by HypervSite
createINSERThostName, resourceGroupName, siteName, subscriptionIdCreate a HypervHost
deleteDELETEhostName, resourceGroupName, siteName, subscriptionIdDelete a HypervHost

SELECT examples

List HypervHost resources by HypervSite

SELECT
created_timestamp,
errors,
fqdn,
hostName,
provisioning_state,
resourceGroupName,
run_as_account_id,
siteName,
subscriptionId,
updated_timestamp,
version
FROM azure.migrate.vw_hyperv_host_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_host_controllers resource.

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

DELETE example

Deletes the specified hyperv_host_controllers resource.

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