Skip to main content

replicationv_center

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

Overview

Namereplicationv_center
TypeResource
Idazure.recovery_services_site_recovery.replicationv_center

Fields

NameDatatypeDescription
idtextResource Id
nametextResource Name
discovery_statustextfield from the properties object
fabricNametextfield from the properties object
fabric_arm_resource_nametextfield from the properties object
friendly_nametextfield from the properties object
health_errorstextfield from the properties object
infrastructure_idtextfield from the properties object
internal_idtextfield from the properties object
ip_addresstextfield from the properties object
last_heartbeattextfield from the properties object
locationtextResource Location
porttextfield from the properties object
process_server_idtextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
run_as_account_idtextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource Type
vcenterNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTfabricName, resourceGroupName, resourceName, subscriptionId, vcenterNameGets the details of a registered vCenter server(Add vCenter server).
listSELECTresourceGroupName, resourceName, subscriptionIdLists the vCenter servers registered in the vault.
list_by_replication_fabricsSELECTfabricName, resourceGroupName, resourceName, subscriptionIdLists the vCenter servers registered in a fabric.
createINSERTfabricName, resourceGroupName, resourceName, subscriptionId, vcenterNameThe operation to create a vCenter object..
deleteDELETEfabricName, resourceGroupName, resourceName, subscriptionId, vcenterNameThe operation to remove(unregister) a registered vCenter server from the vault.
updateUPDATEfabricName, resourceGroupName, resourceName, subscriptionId, vcenterNameThe operation to update a registered vCenter.

SELECT examples

Lists the vCenter servers registered in the vault.

SELECT
id,
name,
discovery_status,
fabricName,
fabric_arm_resource_name,
friendly_name,
health_errors,
infrastructure_id,
internal_id,
ip_address,
last_heartbeat,
location,
port,
process_server_id,
resourceGroupName,
resourceName,
run_as_account_id,
subscriptionId,
type,
vcenterName
FROM azure.recovery_services_site_recovery.vw_replicationv_center
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replicationv_center (
fabricName,
resourceGroupName,
resourceName,
subscriptionId,
vcenterName,
properties
)
SELECT
'{{ fabricName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ vcenterName }}',
'{{ properties }}'
;

UPDATE example

Updates a replicationv_center resource.

/*+ update */
UPDATE azure.recovery_services_site_recovery.replicationv_center
SET
properties = '{{ properties }}'
WHERE
fabricName = '{{ fabricName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vcenterName = '{{ vcenterName }}';

DELETE example

Deletes the specified replicationv_center resource.

/*+ delete */
DELETE FROM azure.recovery_services_site_recovery.replicationv_center
WHERE fabricName = '{{ fabricName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vcenterName = '{{ vcenterName }}';