Skip to main content

server_sites_controllers

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

Overview

Nameserver_sites_controllers
TypeResource
Idazure.migrate.server_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 ServerSiteResource
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList ServerSiteResource resources by resource group
list_by_subscriptionSELECTsubscriptionIdList ServerSiteResource resources by subscription ID
createINSERTresourceGroupName, siteName, subscriptionIdCreate a ServerSiteResource
deleteDELETEresourceGroupName, siteName, subscriptionIdDelete a ServerSiteResource
updateUPDATEresourceGroupName, siteName, subscriptionIdUpdate a ServerSiteResource
compute_error_summaryEXECresourceGroupName, siteName, subscriptionIdGet the error summary for a server site.
computeusageEXECresourceGroupName, siteName, subscriptionIdGet a serve 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.
refresh_siteEXECresourceGroupName, siteName, subscriptionIdOperation to refresh a site
summaryEXECresourceGroupName, siteName, subscriptionIdMethod to get site usage.

SELECT examples

List ServerSiteResource resources by subscription ID

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_server_sites_controllers
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a server_sites_controllers resource.

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

DELETE example

Deletes the specified server_sites_controllers resource.

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