Skip to main content

master_sites_controllers

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

Overview

Namemaster_sites_controllers
TypeResource
Idazure.migrate.master_sites_controllers

Fields

NameDatatypeDescription
allow_multiple_sitestextfield from the properties object
customer_storage_account_arm_idtextfield from the properties object
locationtextThe geo-location where the resource lives
nested_sitestextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
siteNametextfield from the properties object
sitestextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, siteName, subscriptionIdGet a MasterSite
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet all the sites in the resource group.
list_by_subscriptionSELECTsubscriptionIdList MasterSite resources by subscription ID
createINSERTresourceGroupName, siteName, subscriptionIdMethod to create or update a site.
deleteDELETEresourceGroupName, siteName, subscriptionIdMethod to delete a site.
updateUPDATEresourceGroupName, siteName, subscriptionIdMethod to update an existing site.
error_summaryEXECresourceGroupName, siteName, subscriptionIdMethod to get error summary from master site for an appliance.

SELECT examples

List MasterSite resources by subscription ID

SELECT
allow_multiple_sites,
customer_storage_account_arm_id,
location,
nested_sites,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
siteName,
sites,
subscriptionId,
tags
FROM azure.migrate.vw_master_sites_controllers
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a master_sites_controllers resource.

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

DELETE example

Deletes the specified master_sites_controllers resource.

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